bianbu-linux-6.6/drivers/net/ethernet/chelsio/cxgb4
Rahul Lakkireddy 0caeaf6ad5 cxgb4/cxgb4vf: fix flow control display for auto negotiation
As per 802.3-2005, Section Two, Annex 28B, Table 28B-2 [1], when
_only_ Rx pause is enabled, both symmetric and asymmetric pause
towards local device must be enabled. Also, firmware returns the local
device's flow control pause params as part of advertised capabilities
and negotiated params as part of current link attributes. So, fix up
ethtool's flow control pause params fetch logic to read from acaps,
instead of linkattr.

[1] https://standards.ieee.org/standard/802_3-2005.html

Fixes: c3168cabe1 ("cxgb4/cxgbvf: Handle 32-bit fw port capabilities")
Signed-off-by: Surendra Mobiya <surendra@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-12-30 14:40:42 -08:00
..
clip_tbl.c cxgb4: clip_tbl: Use struct_size() in kvzalloc() 2019-01-29 10:55:02 -08:00
clip_tbl.h drivers, net, ethernet: convert clip_entry.refcnt from atomic_t to refcount_t 2017-10-22 02:22:38 +01:00
cudbg_common.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cudbg_entity.h cxgb4: add ETHOFLD hardware queue support 2019-11-07 10:41:59 -08:00
cudbg_if.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cudbg_lib.c cxgb4: Use match_string() helper to simplify the code 2019-11-08 11:33:16 -08:00
cudbg_lib.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cudbg_lib_common.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cudbg_zlib.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cudbg_zlib.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cxgb4.h cxgb4/cxgb4vf: fix flow control display for auto negotiation 2019-12-30 14:40:42 -08:00
cxgb4_cudbg.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cxgb4_cudbg.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cxgb4_dcb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cxgb4_dcb.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cxgb4_debugfs.c cxgb4: Fix kernel panic while accessing sge_info 2019-12-15 11:27:31 -08:00
cxgb4_debugfs.h cxgb4: remove DEFINE_SIMPLE_DEBUGFS_FILE() 2018-12-15 11:21:22 -08:00
cxgb4_ethtool.c cxgb4/cxgb4vf: fix flow control display for auto negotiation 2019-12-30 14:40:42 -08:00
cxgb4_fcoe.c cxgb4/chtls: Prefix adapter flags with CXGB4 2019-03-04 10:21:32 -08:00
cxgb4_fcoe.h
cxgb4_filter.c cxgb4: add TC-MATCHALL classifier ingress offload 2019-11-20 12:05:23 -08:00
cxgb4_filter.h cxgb4: check rule prio conflicts before offload 2019-11-20 12:05:23 -08:00
cxgb4_main.c cxgb4: add UDP segmentation offload support 2019-11-22 16:44:40 -08:00
cxgb4_mps.c cxgb4: Add MPS refcounting for alloc/free mac filters 2019-06-24 14:54:06 -07:00
cxgb4_ptp.c net: cxgb4: fix various indentation issues 2019-01-10 09:30:49 -05:00
cxgb4_ptp.h cxgb4: time stamping interface for PTP 2017-07-05 09:21:54 +01:00
cxgb4_tc_flower.c cxgb4: add TC-MATCHALL classifier ingress offload 2019-11-20 12:05:23 -08:00
cxgb4_tc_flower.h cxgb4: add TC-MATCHALL classifier ingress offload 2019-11-20 12:05:23 -08:00
cxgb4_tc_matchall.c cxgb4: add TC-MATCHALL classifier ingress offload 2019-11-20 12:05:23 -08:00
cxgb4_tc_matchall.h cxgb4: add TC-MATCHALL classifier ingress offload 2019-11-20 12:05:23 -08:00
cxgb4_tc_mqprio.c cxgb4: fix refcount init for TC-MQPRIO offload 2019-12-20 14:13:33 -08:00
cxgb4_tc_mqprio.h cxgb4: add FLOWC based QoS offload 2019-11-07 10:41:59 -08:00
cxgb4_tc_u32.c cxgb4: check rule prio conflicts before offload 2019-11-20 12:05:23 -08:00
cxgb4_tc_u32.h net: sched: push cls related args into cls_common structure 2017-08-07 09:42:37 -07:00
cxgb4_tc_u32_parse.h
cxgb4_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
cxgb4_uld.c cxgb4: add ETHOFLD hardware queue support 2019-11-07 10:41:59 -08:00
cxgb4_uld.h cxgb4: parse and configure TC-MQPRIO offload 2019-11-07 10:41:59 -08:00
l2t.c cxgb4/l2t: Simplify 't4_l2e_free()' and '_t4_l2e_free()' 2019-10-31 10:37:59 -07:00
l2t.h
Makefile cxgb4: add TC-MATCHALL classifier egress offload 2019-11-20 12:05:23 -08:00
sched.c cxgb4: add TC-MATCHALL classifier egress offload 2019-11-20 12:05:23 -08:00
sched.h cxgb4: add TC-MATCHALL classifier egress offload 2019-11-20 12:05:23 -08:00
sge.c cxgb4: add stats for MQPRIO QoS offload Tx path 2019-11-22 16:44:40 -08:00
smt.c cxgb4: smt: Use normal int for refcount 2019-08-08 18:12:17 -07:00
smt.h cxgb4: smt: Use normal int for refcount 2019-08-08 18:12:17 -07:00
srq.c cxgb4/chtls: Prefix adapter flags with CXGB4 2019-03-04 10:21:32 -08:00
srq.h cxgb4: Add support to initialise/read SRQ entries 2018-03-22 11:59:11 -04:00
t4_chip_type.h cxgb4: clean up init_one 2018-05-25 14:59:38 -04:00
t4_hw.c cxgb4/cxgb4vf: fix flow control display for auto negotiation 2019-12-30 14:40:42 -08:00
t4_hw.h cxgb4/cxgb4vf: Add support for SGE doorbell queue timer 2019-02-14 12:39:35 -05:00
t4_msg.h cxgb4: add Tx and Rx path for ETHOFLD traffic 2019-11-07 10:41:59 -08:00
t4_pci_id_tbl.h cxgb4: Add new T6 PCI device ids 0x608b 2019-02-06 13:41:48 -08:00
t4_regs.h cxgb4: Enable hash filter with offload 2019-05-22 17:35:14 -07:00
t4_tcb.h cxgb4: add tcb flags and tcb rpl struct 2019-02-08 17:02:05 -07:00
t4_values.h cxgb4/cxgb4vf: Add support for SGE doorbell queue timer 2019-02-14 12:39:35 -05:00
t4fw_api.h cxgb4: add UDP segmentation offload support 2019-11-22 16:44:40 -08:00
t4fw_version.h cxgb4: Update 1.23.3.0 as the latest firmware supported. 2019-03-29 13:47:31 -07:00