aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-05-28 01:51:06 -0400
committerDavid S. Miller <davem@davemloft.net>2013-05-28 01:51:06 -0400
commit51047840e60287fb4f34bc768cc65f4bfc9098f4 (patch)
treecc7fd6947941ba8e7cb63d5e190e14f48503ca37 /net/core/dev.c
parent50ab731e967d65549b11b808f129329dd614e8d9 (diff)
parent0d89d2035fe063461a5ddb609b2c12e7fb006e44 (diff)
Merge branch 'mpls_gso'
Simon Horman says: ==================== In the case where a non-MPLS packet is received and an MPLS stack is added it may well be the case that the original skb is GSO but the NIC used for transmit does not support GSO of MPLS packets. The aim of this short series is to provide GSO in software for MPLS packets whose skbs are GSO. Change since v4: Update first patch of the series to use 16 bits for all *_headers rather than just inner_*_headers Simon Horman (2): net: Use 16bits for *_headers fields of struct skbuff MPLS: Add limited GSO support ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 50c02ded1d69..2f09cb29cc95 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5277,6 +5277,10 @@ int register_netdevice(struct net_device *dev)
5277 */ 5277 */
5278 dev->hw_enc_features |= NETIF_F_SG; 5278 dev->hw_enc_features |= NETIF_F_SG;
5279 5279
5280 /* Make NETIF_F_SG inheritable to MPLS.
5281 */
5282 dev->mpls_features |= NETIF_F_SG;
5283
5280 ret = call_netdevice_notifiers(NETDEV_POST_INIT, dev); 5284 ret = call_netdevice_notifiers(NETDEV_POST_INIT, dev);
5281 ret = notifier_to_errno(ret); 5285 ret = notifier_to_errno(ret);
5282 if (ret) 5286 if (ret)