Re: Packet gets stuck in NOLOCK pfifo_fast qdisc

2020-06-23 Thread Michael Zhivich
> From: Jonas Bonn > To: Paolo Abeni , > "netdev@vger.kernel.org" , > LKML , > "David S . Miller" , > John Fastabend > Subject: Re: Packet gets stuck in NOLOCK pfifo_fast qdisc > Date: Fri, 11 Oct 2019 02:39:48 +0200 > Message-ID: <465a540e-5296-32e7-f6a6-79942dfe2...@netr

[PATCH] ethtool: thunder_bgx: use ethtool.h constants for speed and duplex

2019-04-08 Thread Michael Zhivich
Use constants provided by ethtool.h for speed and duplex values instead of raw integer constants to increase code readability. thunder_bgx already uses SPEED_UNKNOWN and DUPLEX_UNKNOWN constants, also provided by ethtool.h. Signed-off-by: Michael Zhivich --- drivers/net/ethernet/cavium/thunder

[PATCH v2 1/3] ethtool: avoid signed-unsigned comparison in ethtool_validate_speed()

2019-04-08 Thread Michael Zhivich
t. Signed-off-by: Michael Zhivich --- include/uapi/linux/ethtool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 3652b239..d473e5e 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h

[PATCH v2 0/3] ethtool: fix use of SPEED_UNKNOWN constant

2019-04-08 Thread Michael Zhivich
resulting in value truncation and thus failure to test against SPEED_UNKNOWN correctly. This revised series addresses several feedback comments: - split up the patch in to series - do not unnecessarily change drivers that use "int" storage for speed values Michael Zhivich (3): e

[PATCH v2 3/3] qlogic: qlcnic: fix use of SPEED_UNKNOWN ethtool constant

2019-04-08 Thread Michael Zhivich
ED_UNKNOWN) printf("True"); else printf("False"); Change storage of speed to use u32 to avoid this issue. Signed-off-by: Michael Zhivich --- drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e

[PATCH v2 2/3] broadcom: tg3: fix use of SPEED_UNKNOWN ethtool constant

2019-04-08 Thread Michael Zhivich
ED_UNKNOWN) printf("True"); else printf("False"); Change storage of speed to use u32 to avoid this issue. Signed-off-by: Michael Zhivich --- drivers/net/ethernet/broadcom/tg3.c | 8 drivers/net/ethernet/broadcom/tg3.h | 4 ++-- 2 fil

[PATCH] ethtool: fix SPEED_UNKNOWN definition to avoid signed-unsigned comparison

2019-04-01 Thread Michael Zhivich
infiniband/ulp/ipoib/ipoib_ethtool.c. Signed-off-by: Michael Zhivich --- drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | 7 --- drivers/net/dsa/mv88e6xxx/chip.c | 5 +++-- drivers/net/dsa/mv88e6xxx/serdes.c| 2 +- drivers/net/ethernet/alacrit