X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fvport-internal_dev.c;h=26b432b7cee0a54b11bf3f1c49515fe630f33ae8;hb=6455100f38e9312346f4d58511595f695d813537;hp=20bfabe081b68da81a27515a9ebb149865dcf645;hpb=d929d22c2c543ae3ceafa90b378154e6b4cf9a56;p=sliver-openvswitch.git diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c index 20bfabe08..26b432b7c 100644 --- a/datapath/vport-internal_dev.c +++ b/datapath/vport-internal_dev.c @@ -33,7 +33,7 @@ struct internal_dev { #endif }; -static inline struct internal_dev *internal_dev_priv(struct net_device *netdev) +static struct internal_dev *internal_dev_priv(struct net_device *netdev) { return netdev_priv(netdev); } @@ -138,7 +138,8 @@ static int internal_dev_change_mtu(struct net_device *netdev, int new_mtu) return 0; } -static int internal_dev_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) +static int internal_dev_do_ioctl(struct net_device *dev, + struct ifreq *ifr, int cmd) { if (dp_ioctl_hook) return dp_ioctl_hook(dev, ifr, cmd); @@ -212,7 +213,8 @@ static struct vport *internal_dev_create(const struct vport_parms *parms) struct internal_dev *internal_dev; int err; - vport = vport_alloc(sizeof(struct netdev_vport), &internal_vport_ops, parms); + vport = vport_alloc(sizeof(struct netdev_vport), + &internal_vport_ops, parms); if (IS_ERR(vport)) { err = PTR_ERR(vport); goto error; @@ -220,7 +222,8 @@ static struct vport *internal_dev_create(const struct vport_parms *parms) netdev_vport = netdev_vport_priv(vport); - netdev_vport->dev = alloc_netdev(sizeof(struct internal_dev), parms->name, do_setup); + netdev_vport->dev = alloc_netdev(sizeof(struct internal_dev), + parms->name, do_setup); if (!netdev_vport->dev) { err = -ENOMEM; goto error_free_vport;