All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: enetc: add support for software TSO
@ 2021-10-06 20:13 Ioana Ciornei
  2021-10-06 20:13 ` [PATCH net-next 1/2] net: enetc: declare NETIF_F_IP_CSUM and do it in software Ioana Ciornei
  2021-10-06 20:13 ` [PATCH net-next 2/2] net: enetc: add support for software TSO Ioana Ciornei
  0 siblings, 2 replies; 12+ messages in thread
From: Ioana Ciornei @ 2021-10-06 20:13 UTC (permalink / raw)
  To: davem, kuba; +Cc: netdev, claudiu.manoil, vladimir.oltean, Ioana Ciornei

This series adds support for driver level TSO in the enetc driver.

Ever since the ENETC MDIO erratum workaround is in place, the Tx path is
incurring a penalty (enetc_lock_mdio/enetc_unlock_mdio) for each skb to
be sent out. On top of this, ENETC does not support Tx checksum
offloading. This means that software TSO would help performance just by
the fact that one single mdio lock/unlock sequence would cover multiple
packets sent. On the other hand, checksum needs to be computed in
software since the controller cannot handle it.

This is why, beside using the usual tso_build_hdr()/tso_build_data()
this specific implementation also has to compute the checksum, both IP
and L4, for each resulted segment.

Even with that, the performance improvement of a TCP flow running on a
single A72@1.3GHz of the LS1028A SoC (2.5Gbit/s port) is the following:

before: 1.63 Gbits/sec
after:  2.34 Gbits/sec

Ioana Ciornei (2):
  net: enetc: declare NETIF_F_IP_CSUM and do it in software
  net: enetc: add support for software TSO

 drivers/net/ethernet/freescale/enetc/enetc.c  | 272 +++++++++++++++++-
 drivers/net/ethernet/freescale/enetc/enetc.h  |   4 +
 .../net/ethernet/freescale/enetc/enetc_pf.c   |   7 +-
 .../net/ethernet/freescale/enetc/enetc_vf.c   |   7 +-
 4 files changed, 279 insertions(+), 11 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-10-07 12:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06 20:13 [PATCH net-next 0/2] net: enetc: add support for software TSO Ioana Ciornei
2021-10-06 20:13 ` [PATCH net-next 1/2] net: enetc: declare NETIF_F_IP_CSUM and do it in software Ioana Ciornei
2021-10-07  0:24   ` Jakub Kicinski
2021-10-07  6:47     ` Ioana Ciornei
2021-10-07 12:12       ` Ioana Ciornei
2021-10-06 20:13 ` [PATCH net-next 2/2] net: enetc: add support for software TSO Ioana Ciornei
2021-10-07  0:30   ` Jakub Kicinski
2021-10-07  6:48     ` Ioana Ciornei
2021-10-07  7:59   ` Claudiu Manoil
2021-10-07  8:33     ` Ioana Ciornei
2021-10-07  9:06       ` Claudiu Manoil
2021-10-07  9:26         ` Ioana Ciornei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.