linux-stable/drivers/net/ethernet/amd
Hangbin Liu 9c9211a3fc net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX
Since commit 94dd016ae5 ("bond: pass get_ts_info and SIOC[SG]HWTSTAMP
ioctl to active device") the user could get bond active interface's
PHC index directly. But when there is a failover, the bond active
interface will change, thus the PHC index is also changed. This may
break the user's program if they did not update the PHC timely.

This patch adds a new hwtstamp_config flag HWTSTAMP_FLAG_BONDED_PHC_INDEX.
When the user wants to get the bond active interface's PHC, they need to
add this flag and be aware the PHC index may be changed.

With the new flag. All flag checks in current drivers are removed. Only
the checking in net_hwtstamp_validate() is kept.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-12-14 12:28:24 +00:00
..
xgbe net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX 2021-12-14 12:28:24 +00:00
7990.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
7990.h net: 7990: Fix use correct return type for ndo_start_xmit() 2020-05-06 14:26:14 -07:00
a2065.c amd: a2065/ariadne: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
a2065.h
amd8111e.c ethernet: amd: use eth_hw_addr_set() 2021-10-16 08:53:46 +01:00
amd8111e.h net: amd: remove leading spaces before tabs 2021-05-19 12:17:30 -07:00
ariadne.c amd: a2065/ariadne: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
ariadne.h
atarilance.c amd: atarilance: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
au1000_eth.c ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
au1000_eth.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 400 2019-06-05 17:37:13 +02:00
declance.c net: amd: remove leading spaces before tabs 2021-05-19 12:17:30 -07:00
hplance.c amd: hplance: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
hplance.h
Kconfig of: net: move of_net under net/ 2021-10-07 13:39:51 +01:00
lance.c amd: lance: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
Makefile net: remove am79c961a driver 2020-10-30 21:57:03 +01:00
mvme147.c amd: mvme147: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
ni65.c amd: ni65: use eth_hw_addr_set() 2021-11-19 11:05:20 +00:00
ni65.h
nmclan_cs.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
pcnet32.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
sun3lance.c ethernet: replace netdev->dev_addr assignment loops 2021-10-14 09:22:25 -07:00
sunlance.c ethernet: replace netdev->dev_addr assignment loops 2021-10-14 09:22:25 -07:00