From: Michael Chan <michael.chan@broadcom.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, andrew.gospodarek@broadcom.com
Subject: [PATCH net-next v4 0/5] Introduce NETIF_F_GRO_HW
Date: Mon, 11 Dec 2017 06:41:05 -0500 [thread overview]
Message-ID: <1512992470-28861-1-git-send-email-michael.chan@broadcom.com> (raw)
Introduce NETIF_F_GRO_HW feature flag and convert drivers that support
hardware GRO to use the new flag.
v4:
- more changes requested by Alexander Duyck:
- check GRO_HW/GRO dependency in drivers's ndo_fix_features().
- Reverse the order of RXCSUM and GRO_HW dependency check in
netdev_fix_features().
- No propagation in netdev_disable_gro_hw().
v3:
- Let driver's ndo_fix_features() disable NETIF_F_LRO when NETIF_F_GRO_HW
is set instead of doing it in common netdev_fix_features().
v2:
- NETIF_F_GRO_HW flag propagation between upper and lower devices not
required (see patch 1).
- NETIF_F_GRO_HW depends on NETIF_F_GRO and NETIF_F_RXCSUM.
- Add dev_disable_gro_hw() to disable GRO_HW for generic XDP.
- Use ndo_fix_features() on all 3 drivers to drop GRO_HW when it is not
supported
Michael Chan (5):
net: Introduce NETIF_F_GRO_HW.
net: Disable GRO_HW when generic XDP is installed on a device.
bnxt_en: Use NETIF_F_GRO_HW.
bnx2x: Use NETIF_F_GRO_HW.
qede: Use NETIF_F_GRO_HW.
Documentation/networking/netdev-features.txt | 8 +++++++
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 19 ++++++++++------
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 4 +++-
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 27 +++++++++++++++++------
drivers/net/ethernet/qlogic/qede/qede.h | 2 ++
drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 3 +++
drivers/net/ethernet/qlogic/qede/qede_filter.c | 21 ++++++++++++------
drivers/net/ethernet/qlogic/qede/qede_main.c | 17 +++++---------
include/linux/netdev_features.h | 3 +++
net/core/dev.c | 28 ++++++++++++++++++++++++
net/core/ethtool.c | 1 +
11 files changed, 100 insertions(+), 33 deletions(-)
--
1.8.3.1
next reply other threads:[~2017-12-11 11:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-11 11:41 Michael Chan [this message]
2017-12-11 11:41 ` [PATCH net-next v4 1/5] net: Introduce NETIF_F_GRO_HW Michael Chan
2017-12-12 15:57 ` Alexander Duyck
2017-12-11 11:41 ` [PATCH net-next v4 2/5] net: Disable GRO_HW when generic XDP is installed on a device Michael Chan
2017-12-11 11:41 ` [PATCH net-next v4 3/5] bnxt_en: Use NETIF_F_GRO_HW Michael Chan
2017-12-11 11:41 ` [PATCH net-next v4 4/5] bnx2x: " Michael Chan
2017-12-13 9:08 ` Chopra, Manish
2017-12-13 20:45 ` Michael Chan
2017-12-14 7:46 ` Chopra, Manish
2017-12-14 7:59 ` Michael Chan
2017-12-15 7:07 ` Chopra, Manish
2017-12-15 7:56 ` Michael Chan
2017-12-11 11:41 ` [PATCH net-next v4 5/5] qede: " Michael Chan
2017-12-14 16:34 ` [PATCH net-next v4 0/5] Introduce NETIF_F_GRO_HW Or Gerlitz
2017-12-14 18:36 ` Michael Chan
2017-12-14 20:01 ` Or Gerlitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1512992470-28861-1-git-send-email-michael.chan@broadcom.com \
--to=michael.chan@broadcom.com \
--cc=andrew.gospodarek@broadcom.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).