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 bb42eb161969..bbda81997f4f 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -5974,6 +5974,8 @@ struct netdev_queue *dev_ingress_queue_create(struct net_device *dev) | |||
5974 | return queue; | 5974 | return queue; |
5975 | } | 5975 | } |
5976 | 5976 | ||
5977 | static const struct ethtool_ops default_ethtool_ops; | ||
5978 | |||
5977 | /** | 5979 | /** |
5978 | * alloc_netdev_mqs - allocate network device | 5980 | * alloc_netdev_mqs - allocate network device |
5979 | * @sizeof_priv: size of private data to allocate space for | 5981 | * @sizeof_priv: size of private data to allocate space for |
@@ -6061,6 +6063,8 @@ struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name, | |||
6061 | 6063 | ||
6062 | strcpy(dev->name, name); | 6064 | strcpy(dev->name, name); |
6063 | dev->group = INIT_NETDEV_GROUP; | 6065 | dev->group = INIT_NETDEV_GROUP; |
6066 | if (!dev->ethtool_ops) | ||
6067 | dev->ethtool_ops = &default_ethtool_ops; | ||
6064 | return dev; | 6068 | return dev; |
6065 | 6069 | ||
6066 | free_all: | 6070 | free_all: |