diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2016-06-02 14:05:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-03 19:37:21 -0400 |
commit | f6c382fc553b49bc2dfaf705e34fde32171b5db4 (patch) | |
tree | 86debad846fe3889af3ca128e5e377e442055f8a | |
parent | f2edc4e1b0786a285d4eb312cc052b029faa813d (diff) |
loopback: make use of NETIF_F_GSO_SOFTWARE
NETIF_F_GSO_SOFTWARE was defined to list all GSO software types, so lets
make use of it in loopback code. Note that veth/vxlan/others already
uses it.
Within this patch series, this patch causes lo to pick up SCTP GSO feature
automatically (as it's added to NETIF_F_GSO_SOFTWARE) and thus avoiding
segmentation if possible.
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tested-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/loopback.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index a400288cb37b..6255973e3dda 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c | |||
@@ -169,10 +169,9 @@ static void loopback_setup(struct net_device *dev) | |||
169 | dev->flags = IFF_LOOPBACK; | 169 | dev->flags = IFF_LOOPBACK; |
170 | dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE; | 170 | dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE; |
171 | netif_keep_dst(dev); | 171 | netif_keep_dst(dev); |
172 | dev->hw_features = NETIF_F_ALL_TSO | NETIF_F_UFO; | 172 | dev->hw_features = NETIF_F_GSO_SOFTWARE; |
173 | dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | 173 | dev->features = NETIF_F_SG | NETIF_F_FRAGLIST |
174 | | NETIF_F_ALL_TSO | 174 | | NETIF_F_GSO_SOFTWARE |
175 | | NETIF_F_UFO | ||
176 | | NETIF_F_HW_CSUM | 175 | | NETIF_F_HW_CSUM |
177 | | NETIF_F_RXCSUM | 176 | | NETIF_F_RXCSUM |
178 | | NETIF_F_SCTP_CRC | 177 | | NETIF_F_SCTP_CRC |