mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 21:33:00 +01:00
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: e9b4ece7d7 ("net: ti: icssg-prueth: Add Firmware config and classification APIs.")
Signed-off-by: MD Danish Anwar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
This commit is contained in:
1 parent
4b4647add7
commit
56a5cf538c
1 file changed
+1
-1
@@ -455,7 +455,7 @@ void icssg_ft1_set_mac_addr(struct regmap *miig_rt, int slice, u8 *mac_addr)
|
||||
{
|
||||
const u8 mask_addr[] = { 0, 0, 0, 0, 0, 0, };
|
||||
|
||||
rx_class_ft1_set_start_len(miig_rt, slice, 0, 6);
|
||||
rx_class_ft1_set_start_len(miig_rt, slice, ETH_ALEN, ETH_ALEN);
|
||||
rx_class_ft1_set_da(miig_rt, slice, 0, mac_addr);
|
||||
rx_class_ft1_set_da_mask(miig_rt, slice, 0, mask_addr);
|
||||
rx_class_ft1_cfg_set_type(miig_rt, slice, 0, FT1_CFG_TYPE_EQ);
|
||||
|
||||
Reference in new issue
Block a user