diff options
author | 2023-11-16 08:57:07 +0000 | |
---|---|---|
committer | 2023-11-17 03:29:16 +0000 | |
commit | 18de1e517ed37ebaf33e771e46faf052e966e163 (patch) | |
tree | a369a4d820795051f4ed9a694a726157c50d2916 /drivers/net/phy/bcm-phy-ptp.c | |
parent | net: phy: broadcom: Wire suspend/resume for BCM54612E (diff) | |
download | linux-18de1e517ed37ebaf33e771e46faf052e966e163.tar.gz linux-18de1e517ed37ebaf33e771e46faf052e966e163.tar.bz2 linux-18de1e517ed37ebaf33e771e46faf052e966e163.zip |
gve: add gve_features_check()
It is suboptimal to attempt skb linearization from ndo_start_xmit()
if a gso skb has pathological layout, or if host stack does not have
access to the payload (TCP direct). Linearization of large skbs
can also fail under memory pressure.
We should instead have an ndo_features_check() so that we can
fallback to GSO, which is supported even for TCP direct,
and generally much more efficient (no payload copy).
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Bailey Forrest <bcf@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Jeroen de Borst <jeroendb@google.com>
Cc: Praveen Kaligineedi <pkaligineedi@google.com>
Cc: Shailend Chand <shailend@google.com>
Cc: Ziwei Xiao <ziweixiao@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/bcm-phy-ptp.c')
0 files changed, 0 insertions, 0 deletions