mirror-linux/drivers/net/ethernet/ti
Tanmay Patil b685f1a589 net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()/cpsw_ale_set_field()
CPSW ALE has 75 bit ALE entries which are stored within three 32 bit words.
The cpsw_ale_get_field() and cpsw_ale_set_field() functions assume that the
field will be strictly contained within one word. However, this is not
guaranteed to be the case and it is possible for ALE field entries to span
across up to two words at the most.

Fix the methods to handle getting/setting fields spanning up to two words.

Fixes: db82173f23 ("netdev: driver: ethernet: add cpsw address lookup engine support")
Signed-off-by: Tanmay Patil <t-patil@ti.com>
[s-vadapalli@ti.com: rephrased commit message and added Fixes tag]
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-07-14 08:36:43 +01:00
..
Kconfig
Makefile
am65-cpsw-ethtool.c
am65-cpsw-nuss.c net: ethernet: ti: am65-cpsw: Call of_node_put() on error path 2023-06-13 20:47:03 -07:00
am65-cpsw-nuss.h net: ethernet: ti: am65-cpsw: add .ndo to set dma per-queue rate 2023-03-28 15:29:22 +02:00
am65-cpsw-qos.c net/sched: taprio: replace tc_taprio_qopt_offload :: enable with a "cmd" enum 2023-05-31 10:00:30 +01:00
am65-cpsw-qos.h net: ethernet: ti: am65-cpsw: add .ndo to set dma per-queue rate 2023-03-28 15:29:22 +02:00
am65-cpsw-switchdev.c
am65-cpsw-switchdev.h
am65-cpts.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-24 10:10:20 -07:00
am65-cpts.h
cpmac.c
cpsw-common.c
cpsw-phy-sel.c net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
cpsw.c net: ti/cpsw: Add explicit platform_device.h and of_platform.h includes 2023-04-12 10:54:12 +01:00
cpsw.h
cpsw_ale.c net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()/cpsw_ale_set_field() 2023-07-14 08:36:43 +01:00
cpsw_ale.h
cpsw_ethtool.c
cpsw_new.c net: ti/cpsw: Add explicit platform_device.h and of_platform.h includes 2023-04-12 10:54:12 +01:00
cpsw_priv.c
cpsw_priv.h
cpsw_sl.c
cpsw_sl.h
cpsw_switchdev.c
cpsw_switchdev.h
cpts.c
cpts.h
davinci_cpdma.c
davinci_cpdma.h
davinci_emac.c
davinci_mdio.c
k3-cppi-desc-pool.c
k3-cppi-desc-pool.h
netcp.h
netcp_core.c Revert "net: netcp: MAX_SKB_FRAGS is now 'int'" 2023-03-31 21:18:02 -07:00
netcp_ethss.c net: Use of_property_read_bool() for boolean properties 2023-03-16 17:41:28 +00:00
netcp_sgmii.c
netcp_xgbepcsr.c
tlan.c
tlan.h