diff options
Diffstat (limited to 'net/openvswitch/vport-internal_dev.c')
| -rw-r--r-- | net/openvswitch/vport-internal_dev.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c index 5b2ee9c1c00b..74c88a6baa43 100644 --- a/net/openvswitch/vport-internal_dev.c +++ b/net/openvswitch/vport-internal_dev.c @@ -65,7 +65,7 @@ static int internal_dev_stop(struct net_device *netdev)  static void internal_dev_getinfo(struct net_device *netdev,  				 struct ethtool_drvinfo *info)  { -	strlcpy(info->driver, "openvswitch", sizeof(info->driver)); +	strscpy(info->driver, "openvswitch", sizeof(info->driver));  }  static const struct ethtool_ops internal_dev_ethtool_ops = { @@ -147,6 +147,7 @@ static struct vport *internal_dev_create(const struct vport_parms *parms)  	}  	dev_net_set(vport->dev, ovs_dp_get_net(vport->dp)); +	dev->ifindex = parms->desired_ifindex;  	internal_dev = internal_dev_priv(vport->dev);  	internal_dev->vport = vport; @@ -189,7 +190,7 @@ static void internal_dev_destroy(struct vport *vport)  	rtnl_unlock();  } -static netdev_tx_t internal_dev_recv(struct sk_buff *skb) +static int internal_dev_recv(struct sk_buff *skb)  {  	struct net_device *netdev = skb->dev;  |