X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fvport-netdev.c;h=a9d923865e9a466536bc29dc12ebf0e22482f226;hb=77912ae717298cb06544f1bebd9701d0b3c2f2f0;hp=9c01079b0fb9bd2957af59b0b93faa489d88e757;hpb=2fb2cb980c4a0026cc64e693a92c349d4b4f4efe;p=openvswitch diff --git a/datapath/vport-netdev.c b/datapath/vport-netdev.c index 9c01079b..a9d92386 100644 --- a/datapath/vport-netdev.c +++ b/datapath/vport-netdev.c @@ -25,10 +25,10 @@ #include "vport-netdev.h" #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) && \ - !defined(HAVE_VLAN_BUG_WORKAROUND) + !defined(HAVE_VLAN_BUG_WORKAROUND) #include -static int vlan_tso __read_mostly = 0; +static int vlan_tso __read_mostly; module_param(vlan_tso, int, 0644); MODULE_PARM_DESC(vlan_tso, "Enable TSO for VLAN packets"); #else @@ -120,7 +120,8 @@ static struct vport *netdev_create(const struct vport_parms *parms) struct netdev_vport *netdev_vport; int err; - vport = vport_alloc(sizeof(struct netdev_vport), &netdev_vport_ops, parms); + vport = vport_alloc(sizeof(struct netdev_vport), + &netdev_vport_ops, parms); if (IS_ERR(vport)) { err = PTR_ERR(vport); goto error; @@ -262,7 +263,7 @@ static void netdev_port_receive(struct vport *vport, struct sk_buff *skb) vport_receive(vport, skb); } -static inline unsigned packet_length(const struct sk_buff *skb) +static unsigned packet_length(const struct sk_buff *skb) { unsigned length = skb->len - ETH_HLEN; @@ -378,7 +379,7 @@ struct vport *netdev_get_vport(struct net_device *dev) #if IFF_BRIDGE_PORT != IFF_OVS_DATAPATH if (likely(dev->priv_flags & IFF_OVS_DATAPATH)) #else - if (likely(rcu_access_pointer(dev->rx_handler) == netdev_frame_hook)) + if (likely(rcu_access_pointer(dev->rx_handler) == netdev_frame_hook)) #endif return (struct vport *)rcu_dereference_rtnl(dev->rx_handler_data); else