netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH net-next 0/7] NIC driver Rx ring ECN
@ 2023-01-11 14:34 jgh
  2023-01-11 14:34 ` [RFC PATCH 1/7] net: NIC driver Rx ring ECN: skbuff and tcp support jgh
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: jgh @ 2023-01-11 14:34 UTC (permalink / raw)
  To: netdev; +Cc: Jeremy Harris

From: Jeremy Harris <jgh@redhat.com>

Routers and switches provide for mitigation of buffer overrun
by marking IP packets as "Congestion Experienced" [RFC 3168].
Participating transport protocols can use these marks to throttle
their send rates.

This patchset extends coverage to the receiving NIC/driver
buffers.

We use an out-of-band mechanism, marking the sk_buff rather
than the packet, to avoid need for DPI.

Participating NIC drivers are modified to add the marks.
Participating transport protocols are modified to notice
marks and combine with IP-level protocol marks.

Stats counters are incremented in ipv4 and ipv6 input processing,
with results:

 $ nstat -sz *Congest*
 #kernel
 Ip6InCongestionPkts             0                  0.0
 IpExtInCongestionPkts           148454             0.0
 $ 


Both NIC drivers and transports can be incrementatlly upgraded
to take advantage of the feature.  Three example drivers are
modified in this patchset.


Jeremy Harris (7):
  net: NIC driver Rx ring ECN: skbuff and tcp support
  net: NIC driver Rx ring ECN: stats counter
  drivers: net: xgene: NIC driver Rx ring ECN
  drivers: net: bnx2x: NIC driver Rx ring ECN
  drivers: net: bnx2x: NIC driver Rx ring ECN
  drivers: net: bnx2: NIC driver Rx ring ECN
  drivers: net: bnx2: NIC driver Rx ring ECN

 drivers/net/ethernet/apm/xgene/xgene_enet_main.c |  8 ++++++--
 drivers/net/ethernet/broadcom/bnx2.c             | 11 +++++++++--
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c  | 12 +++++++++---
 include/linux/skbuff.h                           |  2 ++
 include/uapi/linux/snmp.h                        |  1 +
 net/core/skbuff.c                                |  1 +
 net/ipv4/ip_input.c                              |  4 ++++
 net/ipv4/proc.c                                  |  1 +
 net/ipv4/tcp_input.c                             |  8 +++++++-
 net/ipv6/ip6_input.c                             |  5 +++++
 net/ipv6/proc.c                                  |  1 +
 11 files changed, 46 insertions(+), 8 deletions(-)


base-commit: 12c1604ae1a39bef87ac099f106594b4cb433b75
-- 
2.39.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-01-19 17:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11 14:34 [RFC PATCH net-next 0/7] NIC driver Rx ring ECN jgh
2023-01-11 14:34 ` [RFC PATCH 1/7] net: NIC driver Rx ring ECN: skbuff and tcp support jgh
2023-01-11 14:34 ` [RFC PATCH 2/7] net: NIC driver Rx ring ECN: stats counter jgh
2023-01-11 14:34 ` [RFC PATCH 3/7] drivers: net: xgene: NIC driver Rx ring ECN jgh
2023-01-11 14:34 ` [RFC PATCH 4/7] drivers: net: bnx2x: " jgh
2023-01-11 14:34 ` [RFC PATCH 5/7] " jgh
2023-01-11 14:34 ` [RFC PATCH 6/7] drivers: net: bnx2: " jgh
2023-01-11 14:34 ` [RFC PATCH 7/7] " jgh
2023-01-11 18:46 ` [RFC PATCH net-next 0/7] " Jakub Kicinski
2023-01-12 14:06   ` Jeremy Harris
2023-01-13  0:09     ` Jakub Kicinski
2023-01-19 17:05       ` Jeremy Harris
2023-01-19 17:20         ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).