diff options
Diffstat (limited to 'net/core/dev.c')
| -rw-r--r-- | net/core/dev.c | 4 |
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) |
