linux/drivers/net/ethernet/hisilicon/hns
lipeng b29bd41259 net: hns: Fix to adjust buf_size of ring according to mtu
Because buf_size of ring set to 2048, the process of rx_poll_one
can reuse the page, therefore the performance of XGE can improve.
But the chip only supports three bds in one package, so the max mtu
is 6K when it sets to 2048. For better performane in litter mtu, we
need change buf_size according to mtu.

When user change mtu, hns is only change the desc in memory. There
are some desc has been fetched by the chip, these desc can not be
changed by the code. So it needs set the port loopback and send
some packages to let the chip consumes the wrong desc and fetch new
desc.
Because the Pv660 do not support rss indirection, we need add version
check in mtu change process.

Signed-off-by: lipeng <lipeng321@huawei.com>
reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-03 14:48:43 -07:00
..
hnae.c net: hns: Remove redundant memset during buffer release 2017-04-03 14:48:43 -07:00
hnae.h net: hns: Fix to adjust buf_size of ring according to mtu 2017-04-03 14:48:43 -07:00
hns_ae_adapt.c net: hns: Fix to adjust buf_size of ring according to mtu 2017-04-03 14:48:43 -07:00
hns_dsaf_gmac.c net: hns: Optimize the code for GMAC pad and crc Config 2017-04-03 14:48:43 -07:00
hns_dsaf_gmac.h
hns_dsaf_mac.c net: hns: Fix to adjust buf_size of ring according to mtu 2017-04-03 14:48:43 -07:00
hns_dsaf_mac.h net: hns: Fix to adjust buf_size of ring according to mtu 2017-04-03 14:48:43 -07:00
hns_dsaf_main.c net: hns: add the support to add/remove the ucast entry to/from table 2016-11-10 11:45:37 -05:00
hns_dsaf_main.h net: hns: add the support to add/remove the ucast entry to/from table 2016-11-10 11:45:37 -05:00
hns_dsaf_misc.c net: hns: fix to intimate the link-status change by adding LF/RF method 2016-11-10 11:45:37 -05:00
hns_dsaf_misc.h net: hns: Add support of ACPI to HNS driver RoCE Reset function 2016-08-25 10:05:10 -04:00
hns_dsaf_ppe.c net: hns: dereference ppe_cb->ppe_common_cb if it is non-null 2016-08-26 11:44:56 -07:00
hns_dsaf_ppe.h net: hns: separate debug dsaf device from service dsaf device 2016-04-26 01:09:17 -04:00
hns_dsaf_rcb.c net: hns: Fix to adjust buf_size of ring according to mtu 2017-04-03 14:48:43 -07:00
hns_dsaf_rcb.h net: hns: Fix to adjust buf_size of ring according to mtu 2017-04-03 14:48:43 -07:00
hns_dsaf_reg.h net: hns: Modify GMAC init TX threshold value 2017-04-03 14:48:43 -07:00
hns_dsaf_xgmac.c net: hns: fix to intimate the link-status change by adding LF/RF method 2016-11-10 11:45:37 -05:00
hns_dsaf_xgmac.h net: hns: fix to intimate the link-status change by adding LF/RF method 2016-11-10 11:45:37 -05:00
hns_enet.c net: hns: Fix to adjust buf_size of ring according to mtu 2017-04-03 14:48:43 -07:00
hns_enet.h net: hns: Optimize hns_nic_common_poll for better performance 2017-04-03 14:48:43 -07:00
hns_ethtool.c net: hns: bug fix of ethtool show the speed 2017-04-03 14:48:43 -07:00
Makefile net: add Hisilicon Network Subsystem basic ethernet support 2015-09-20 21:42:58 -07:00