diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2014-07-17 18:14:15 -0400 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-07-24 04:15:04 -0400 |
commit | f6eec614d2252a99b861e288b6301599d2d58da4 (patch) | |
tree | 1537a6bec17767f8ab2934736c0ace747b2496f8 /net | |
parent | 5cd667b0a4567048bb555927d6ee564f4e5620a9 (diff) |
openvswitch: Enable tunnel GSO for OVS bridge.
Following patch enables all available tunnel GSO features for OVS
bridge device so that ovs can use hardware offloads available to
underling device.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/openvswitch/vport-internal_dev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c index bd658555afdf..84516126e5f3 100644 --- a/net/openvswitch/vport-internal_dev.c +++ b/net/openvswitch/vport-internal_dev.c | |||
@@ -140,11 +140,14 @@ static void do_setup(struct net_device *netdev) | |||
140 | netdev->tx_queue_len = 0; | 140 | netdev->tx_queue_len = 0; |
141 | 141 | ||
142 | netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_FRAGLIST | | 142 | netdev->features = NETIF_F_LLTX | NETIF_F_SG | NETIF_F_FRAGLIST | |
143 | NETIF_F_HIGHDMA | NETIF_F_HW_CSUM | NETIF_F_GSO_SOFTWARE; | 143 | NETIF_F_HIGHDMA | NETIF_F_HW_CSUM | |
144 | NETIF_F_GSO_SOFTWARE | NETIF_F_GSO_ENCAP_ALL; | ||
144 | 145 | ||
145 | netdev->vlan_features = netdev->features; | 146 | netdev->vlan_features = netdev->features; |
147 | netdev->hw_enc_features = netdev->features; | ||
146 | netdev->features |= NETIF_F_HW_VLAN_CTAG_TX; | 148 | netdev->features |= NETIF_F_HW_VLAN_CTAG_TX; |
147 | netdev->hw_features = netdev->features & ~NETIF_F_LLTX; | 149 | netdev->hw_features = netdev->features & ~NETIF_F_LLTX; |
150 | |||
148 | eth_hw_addr_random(netdev); | 151 | eth_hw_addr_random(netdev); |
149 | } | 152 | } |
150 | 153 | ||