diff options
author | Dmitry Bezrukov <dmitry.bezrukov@aquantia.com> | 2018-11-26 10:33:28 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-28 00:46:07 +0100 |
commit | de074e7a7e20f04023c8fdcb0ed6e356f699ec4b (patch) | |
tree | d61de58ea111039fb8f94de528c073c5f699c14d /drivers/net/usb/aqc111.c | |
parent | net: usb: aqc111: Add support for enable/disable checksum offload (diff) | |
download | linux-de074e7a7e20f04023c8fdcb0ed6e356f699ec4b.tar.xz linux-de074e7a7e20f04023c8fdcb0ed6e356f699ec4b.zip |
net: usb: aqc111: Add support for TSO
Signed-off-by: Dmitry Bezrukov <dmitry.bezrukov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/aqc111.c')
-rw-r--r-- | drivers/net/usb/aqc111.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c index 7b69d0a5fc4c..fce2a4f65122 100644 --- a/drivers/net/usb/aqc111.c +++ b/drivers/net/usb/aqc111.c @@ -395,6 +395,8 @@ static int aqc111_bind(struct usbnet *dev, struct usb_interface *intf) dev->net->hw_features |= AQ_SUPPORT_HW_FEATURE; dev->net->features |= AQ_SUPPORT_FEATURE; + netif_set_gso_max_size(dev->net, 65535); + aqc111_read_fw_version(dev, aqc111_data); aqc111_data->autoneg = AUTONEG_ENABLE; aqc111_data->advertised_speed = (usb_speed == USB_SPEED_SUPER) ? @@ -832,6 +834,10 @@ static struct sk_buff *aqc111_tx_fixup(struct usbnet *dev, struct sk_buff *skb, /*Length of actual data*/ tx_desc |= skb->len & AQ_TX_DESC_LEN_MASK; + /* TSO MSS */ + tx_desc |= ((u64)(skb_shinfo(skb)->gso_size & AQ_TX_DESC_MSS_MASK)) << + AQ_TX_DESC_MSS_SHIFT; + headroom = (skb->len + sizeof(tx_desc)) % 8; if (headroom != 0) padding_size = 8 - headroom; |