[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210426092935.728fda80@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Mon, 26 Apr 2021 09:29:35 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Michael Chan <michael.chan@...adcom.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org, gospo@...adcom.com
Subject: Re: [PATCH net-next v2 10/10] bnxt_en: Implement
.ndo_features_check().
On Sun, 25 Apr 2021 13:45:27 -0400 Michael Chan wrote:
> + if (l4_proto != IPPROTO_UDP)
> + return features;
This should have been "features & ~(CSUM | GSO)" if you actually
accepted my feedback. I mentioned extension headers as an example,
v2 looks like a minor refactoring, no functional changes :/
> + bp = netdev_priv(dev);
> + /* For UDP, we can only handle 1 Vxlan port and 1 Geneve port. */
> + udp_port = udp_hdr(skb)->dest;
> + if (udp_port == bp->vxlan_port || udp_port == bp->nge_port)
> + return features;
> + return features & ~(NETIF_F_CSUM_MASK | NETIF_F_GSO_MASK);
Powered by blists - more mailing lists