lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 19 Aug 2016 10:09:02 -0700 From: David Ahern <dsa@...ulusnetworks.com> To: netdev@...r.kernel.org, davem@...emloft.net Cc: buytenh@...tstofly.org, simon.horman@...ronome.com, ebiederm@...ssion.com, rshearma@...cade.com, tom@...bertland.com, tgraf@...g.ch, olivier.dugeon@...nge.com, alexander.duyck@...il.com, roopa@...ulusnetworks.com, David Ahern <dsa@...ulusnetworks.com> Subject: [PATCH net-next 3/3] net: veth: Set features for MPLS veth does not really transmit packets only moves the skb from one netdev to another so gso and checksum is not really needed. Add the features to mpls_features to get the same benefit and performance with MPLS as without it. Reported-by: Lennert Buytenhek <buytenh@...tstofly.org> Signed-off-by: David Ahern <dsa@...ulusnetworks.com> --- drivers/net/veth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/veth.c b/drivers/net/veth.c index f37a6e61d4ad..5db320a4d5cf 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -340,6 +340,7 @@ static void veth_setup(struct net_device *dev) dev->hw_features = VETH_FEATURES; dev->hw_enc_features = VETH_FEATURES; + dev->mpls_features = NETIF_F_HW_CSUM | NETIF_F_GSO_SOFTWARE; } /* -- 2.1.4
Powered by blists - more mailing lists