Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: ti: icssg-prueth: Fix start counter for ft1 filter

The start counter for FT1 filter is wrongly set to 0 in the driver.
FT1 is used for source address violation (SAV) check and source address
starts at Byte 6 not Byte 0. Fix this by changing start counter to
ETH_ALEN in icssg_ft1_set_mac_addr().

Fixes: e9b4ece7d74b ("net: ti: icssg-prueth: Add Firmware config and classification APIs.")
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Link: https://lore.kernel.org/r/20240527063015.263748-1-danishanwar@ti.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

MD Danish Anwar and committed by
Paolo Abeni
56a5cf53 4b4647ad

+1 -1
+1 -1
drivers/net/ethernet/ti/icssg/icssg_classifier.c
··· 455 455 { 456 456 const u8 mask_addr[] = { 0, 0, 0, 0, 0, 0, }; 457 457 458 - rx_class_ft1_set_start_len(miig_rt, slice, 0, 6); 458 + rx_class_ft1_set_start_len(miig_rt, slice, ETH_ALEN, ETH_ALEN); 459 459 rx_class_ft1_set_da(miig_rt, slice, 0, mac_addr); 460 460 rx_class_ft1_set_da_mask(miig_rt, slice, 0, mask_addr); 461 461 rx_class_ft1_cfg_set_type(miig_rt, slice, 0, FT1_CFG_TYPE_EQ);