linux/drivers/net/ethernet/hisilicon/hns
Huazhong Tan b1ccd4c0ab net: hns: fix skb->truesize underestimation
skb->truesize is not meant to be tracking amount of used bytes in a skb,
but amount of reserved/consumed bytes in memory.

For instance, if we use a single byte in last page fragment, we have to
account the full size of the fragment.

So skb_add_rx_frag needs to calculate the length of the entire buffer into
turesize.

Fixes: 9cbe9fd521 ("net: hns: optimize XGE capability by reducing cpu usage")
Signed-off-by: Huazhong tan <tanhuazhong@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-08-22 21:47:36 -07:00
..
hnae.c
hnae.h net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES 2018-08-22 21:47:35 -07:00
hns_ae_adapt.c net: hns: Make many functions static 2018-07-26 09:41:48 -07:00
hns_dsaf_gmac.c net: hns: Make many functions static 2018-07-26 09:41:48 -07:00
hns_dsaf_gmac.h
hns_dsaf_mac.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-08-15 15:04:25 -07:00
hns_dsaf_mac.h
hns_dsaf_main.c net: hns: remove redundant variables 'max_frm' and 'tmp_mac_key' 2018-08-02 14:40:22 -07:00
hns_dsaf_main.h
hns_dsaf_misc.c net: hns: Make many functions static 2018-07-26 09:41:48 -07:00
hns_dsaf_misc.h
hns_dsaf_ppe.c net: hisilicon: hns: Replace mdelay() with msleep() 2018-07-27 13:45:14 -07:00
hns_dsaf_ppe.h
hns_dsaf_rcb.c net: hns: Make many functions static 2018-07-26 09:41:48 -07:00
hns_dsaf_rcb.h
hns_dsaf_reg.h
hns_dsaf_xgmac.c net: hisilicon: hns: Replace mdelay() with msleep() 2018-07-27 13:45:14 -07:00
hns_dsaf_xgmac.h
hns_enet.c net: hns: fix skb->truesize underestimation 2018-08-22 21:47:36 -07:00
hns_enet.h
hns_ethtool.c net: hns: Mark expected switch fall-through 2018-08-07 17:54:19 -07:00
Makefile