qlcnic: Implement ndo_gso_check()
Use vxlan_gso_check() to advertise offload support for this NIC. Signed-off-by: Joe Stringer <joestringer@nicira.com> Acked-by: Shahed Shaikh <shahed.shaikh@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
956bdab2e4
commit
795a05c1c2
drivers/net/ethernet/qlogic/qlcnic
|
@ -503,6 +503,11 @@ static void qlcnic_del_vxlan_port(struct net_device *netdev,
|
||||||
|
|
||||||
adapter->flags |= QLCNIC_DEL_VXLAN_PORT;
|
adapter->flags |= QLCNIC_DEL_VXLAN_PORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool qlcnic_gso_check(struct sk_buff *skb, struct net_device *dev)
|
||||||
|
{
|
||||||
|
return vxlan_gso_check(skb);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const struct net_device_ops qlcnic_netdev_ops = {
|
static const struct net_device_ops qlcnic_netdev_ops = {
|
||||||
|
@ -526,6 +531,7 @@ static const struct net_device_ops qlcnic_netdev_ops = {
|
||||||
#ifdef CONFIG_QLCNIC_VXLAN
|
#ifdef CONFIG_QLCNIC_VXLAN
|
||||||
.ndo_add_vxlan_port = qlcnic_add_vxlan_port,
|
.ndo_add_vxlan_port = qlcnic_add_vxlan_port,
|
||||||
.ndo_del_vxlan_port = qlcnic_del_vxlan_port,
|
.ndo_del_vxlan_port = qlcnic_del_vxlan_port,
|
||||||
|
.ndo_gso_check = qlcnic_gso_check,
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NET_POLL_CONTROLLER
|
#ifdef CONFIG_NET_POLL_CONTROLLER
|
||||||
.ndo_poll_controller = qlcnic_poll_controller,
|
.ndo_poll_controller = qlcnic_poll_controller,
|
||||||
|
|
Loading…
Reference in New Issue