If enable DCB feature, we need to add the capacity, and the current
procedure cannot setting the dcb because of no capacity flag and every
ops interface will implement by the capicity flag is enable.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns3/
If enable DCB feature, we need to add the capacity, and the current
procedure cannot setting the dcb because of no capacity flag and every
ops interface will implement by the capicity flag is enable.
Signed-off-by: Kejian Yan
---
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6
The misc operation for different hw platform may be different, if using
current implementation, it will add a new branch on each function for
every new hw platform, so we add a method for this operation.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <
Enet needs to get configration parameter by acpi. This patch
adds support of ACPI for enet. The configuration parameter will
be configed in BIOS.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2:
1. use ac
.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2:
1. use dev_of_node instead of IS_ENABLED macro
2. Add ACPI bits
v1: first submit
Link: https://lkml.org/lkml/2016/5/13/93
---
drivers/net/ethern
The miscellaneous operation is implemented in BIOS, the kernel can call
_DSM method help to call the implementation in ACPI case. Here is a patch
to do that.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2:
ead of IS_ENABLED() to check if it is a DT node.
3. split the patch("add support of acpi for hns-mdio") into two patches:
3.1 Move to use fwnode_handle
3.2 Add ACPI
4. add the patch which subject is dsaf misc operation method
5. fix the comments by Andy Shevchenko
Kejian Yan (13)
The misc operation for different hw platform may be different, if using
current implementation, it will add a new branch on each function for
every new hw platform, so we add a method for this operation.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon
Enet needs to get configration parameter by acpi. This patch
adds support of ACPI for enet. The configuration parameter will
be configed in BIOS.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2:
1. use acpi_dev_found() instead of acpi_match_device_ids()
2
.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2:
1. use dev_of_node instead of IS_ENABLED macro
2. Add ACPI bits
v1: first submit
Link: https://lkml.org/lkml/2016/5/13/93
---
drivers/net/ethernet/hisilicon/hns_mdio.c | 107
The miscellaneous operation is implemented in BIOS, the kernel can call
_DSM method help to call the implementation in ACPI case. Here is a patch
to do that.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2: use a serial function to implement the reset sequence
v1
ead of IS_ENABLED() to check if it is a DT node.
3. split the patch("add support of acpi for hns-mdio") into two patches:
3.1 Move to use fwnode_handle
3.2 Add ACPI
4. add the patch which subject is dsaf misc operation method
5. fix the comments by Andy Shevchenko
Kejian Yan (13)
As irq_of_parse_and_map is only used by DT case, it is excepted to use
a uniform interface. So it is used platform_get_irq() instead.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_ds
Hns-mdio only supports DT case now. do some cleanup to prepare
for introducing other cases later, no functional change.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns
that sequence by both DT and ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2:
1. remove the redundant functions, and
2. adds fwnode match method beside DT and ACPI.
v1: first submit
link: https://lkml.org/lk
that sequence by both DT and ACPI.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2:
1. remove the redundant functions, and
2. adds fwnode match method beside DT and ACPI.
v1: first submit
link: https://lkml.org/lkml/2016/5/13/100
---
drivers/net/ethernet/hisilicon/hns
As irq_of_parse_and_map is only used by DT case, it is excepted to use
a uniform interface. So it is used platform_get_irq() instead.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 5 ++---
1 file changed, 2 insertions(+), 3
Hns-mdio only supports DT case now. do some cleanup to prepare
for introducing other cases later, no functional change.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns_mdio.c | 46 +++
1 file changed, 23 insertions(+), 23
OF series functions can be used only for DT case. Use unified
device property function instead to support both DT and ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf
Dsaf needs to get configuration parameter by ACPI, so this patch add
support of ACPI.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2:
1. use dev_of_node() instead of IS_ENABLED() to check if it is in
DT case
As device_node is only used by DT case, it is expected to find uniform
ways. So fwnode_handle is the suitable method.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
change log:
v2: remove the redundant line
v1: first
OF series functions can be used only for DT case. Use unified
device property function instead to support both DT and ACPI.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 9 +
drivers/net/ethernet/hisilicon/hns/hns_enet.c
Dsaf needs to get configuration parameter by ACPI, so this patch add
support of ACPI.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2:
1. use dev_of_node() instead of IS_ENABLED() to check if it is in
DT case,
2. split a new patch to implement misc operation method
As device_node is only used by DT case, it is expected to find uniform
ways. So fwnode_handle is the suitable method.
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
change log:
v2: remove the redundant line
v1: first submit
link: https://lkml.org/lkml/2016/5/13/98
---
drivers
: Rafael J. Wysocki <r...@rjwysocki.net>
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
include/linux/acpi.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 3025d
| --- |
| | | | | |
| | | | | |
|MAC MAC MAC MAC|
| | | | | |
| | | |
|||||| ||
PHY PHY PHY PHY
Signed-off-by: Kejian Yan
: Rafael J. Wysocki
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
include/linux/acpi.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 3025d19..4d4bb49 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -659,6
| --- |
| | | | | |
| | | | | |
|MAC MAC MAC MAC|
| | | | | |
| | | |
|||||| ||
PHY PHY PHY PHY
Signed-off-by: Kejian Yan
.
Cc: Rafael J. Wysocki <r...@rjwysocki.net>
Signed-off-by: Kejian Yan <yankej...@huawei.com>
Signed-off-by: Yisen Zhuang <yisen.zhu...@huawei.com>
---
include/linux/acpi.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
inde
.
Cc: Rafael J. Wysocki
Signed-off-by: Kejian Yan
Signed-off-by: Yisen Zhuang
---
include/linux/acpi.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 288fac5..3025d19 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
fixes the building warning and error
PATCH v2:
- This patchset fixes the comments provided by Andy Shevchenko
PATCH v1:
- first submit
Kejian Yan (2):
net: hns: fix return value of the function about rss
net: hns: fixes a bug of RSS
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 8
fixes the building warning and error
PATCH v2:
- This patchset fixes the comments provided by Andy Shevchenko
PATCH v1:
- first submit
Kejian Yan (2):
net: hns: fix return value of the function about rss
net: hns: fixes a bug of RSS
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 8
-by: Kejian Yan <yankej...@huawei.com>
---
change log:
PATCH v3:
- This patch modifies the return value of .get_rxnfc to fix building error
PATCH v2:
- This patch fixes the comments provided by Andy Shevchenko
Link: https://lkml.org/lkml/2016/3/10/267
PATCH v1:
- first submit
Link:
-by: Kejian Yan
---
change log:
PATCH v3:
- This patch modifies the return value of .get_rxnfc to fix building error
PATCH v2:
- This patch fixes the comments provided by Andy Shevchenko
Link: https://lkml.org/lkml/2016/3/10/267
PATCH v1:
- first submit
Link: https://lkml.org/lkml/2016/3/9
Both .get_rxfh and .get_rxfh are always return 0, it should return result
from hardware when getting or setting rss. And the rss function should
return the correct data type.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
---
change log:
PATCH v3:
- This patch removes unused variabl
Both .get_rxfh and .get_rxfh are always return 0, it should return result
from hardware when getting or setting rss. And the rss function should
return the correct data type.
Signed-off-by: Kejian Yan
---
change log:
PATCH v3:
- This patch removes unused variable 'ret' to fix the build warning
the comments provided by Andy Shevchenko
PATCH v1:
- first submit
Kejian Yan (2):
net: hns: fix return value of the function about rss
net: hns: fixes a bug of RSS
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 8 ---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c | 2
the comments provided by Andy Shevchenko
PATCH v1:
- first submit
Kejian Yan (2):
net: hns: fix return value of the function about rss
net: hns: fixes a bug of RSS
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 8 ---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c | 2
-by: Kejian Yan <yankej...@huawei.com>
---
change log:
PATCH v2:
- This patch fixes the comments provided by Andy Shevchenko
PATCH v1:
- first submit
Link: https://lkml.org/lkml/2016/3/9/981
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 6 --
drivers/net/ethernet/hisilic
-by: Kejian Yan
---
change log:
PATCH v2:
- This patch fixes the comments provided by Andy Shevchenko
PATCH v1:
- first submit
Link: https://lkml.org/lkml/2016/3/9/981
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 6 --
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 18
Both .get_rxfh and .get_rxfh are always return 0, it should return result
from hardware when getting or setting rss. And the rss function should
return the correct data type.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
---
change log:
PATCH v2:
- This patch fixes the comments pr
Both .get_rxfh and .get_rxfh are always return 0, it should return result
from hardware when getting or setting rss. And the rss function should
return the correct data type.
Signed-off-by: Kejian Yan
---
change log:
PATCH v2:
- This patch fixes the comments provided by Andy Shevchenko
PATCH
The current upstreaming code fails to ping other IPv6 net device, because
the enet receives the multicast packets with the src mac addr whick is the
same as its mac addr. These packets need to be dropped.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
---
drivers/net/ethernet/hisilic
-by: Kejian Yan <yankej...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 6 --
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 20
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_ae_adap
The current upstreaming code fails to ping other IPv6 net device, because
the enet receives the multicast packets with the src mac addr whick is the
same as its mac addr. These packets need to be dropped.
Signed-off-by: Kejian Yan
---
drivers/net/ethernet/hisilicon/hns/hns_enet.c | 9
-by: Kejian Yan
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 6 --
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 20
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c
b/drivers/net/ethernet
When we use ethtool to retrieves or configure the receive flow hash
indirection table, ethtool needs to call .get_rxnfc to get the ring number
so this patchset implements the .get_rxnfc and fixes the bug that we can
not get the tatal table each time.
Kejian Yan (2):
net: hns: fix return value
Both .get_rxfh and .get_rxfh are always return 0, it should return result
from hardware when getting or setting rss. And the rss function should
return the correct data type.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 2 +-
d
When we use ethtool to retrieves or configure the receive flow hash
indirection table, ethtool needs to call .get_rxnfc to get the ring number
so this patchset implements the .get_rxnfc and fixes the bug that we can
not get the tatal table each time.
Kejian Yan (2):
net: hns: fix return value
Both .get_rxfh and .get_rxfh are always return 0, it should return result
from hardware when getting or setting rss. And the rss function should
return the correct data type.
Signed-off-by: Kejian Yan
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 2 +-
drivers/net/ethernet/hisilicon
In chip V1, the maximum mtu value is 9600 for service ports and 1514 for
debug ports. And in chip V2, it is 9728 for service ports and 1514 for
debug ports. But it is always configurates as 9600 before this patch. This
patch will configurate the right mtu value.
Signed-off-by: Kejian Yan <yan
In chip V1, the maximum mtu value is 9600 for service ports and 1514 for
debug ports. And in chip V2, it is 9728 for service ports and 1514 for
debug ports. But it is always configurates as 9600 before this patch. This
patch will configurate the right mtu value.
Signed-off-by: Kejian Yan
It will always be passed if the soc is tested the loopback cases. This
patch will fix this bug.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
---
change log:
PATCH v2:
- This patch fixes the comments provided by Andy Shevchenko
PATCH v1:
- first submit
Link: https://lkml.org/lkml/
It will always be passed if the soc is tested the loopback cases. This
patch will fix this bug.
Signed-off-by: Kejian Yan
---
change log:
PATCH v2:
- This patch fixes the comments provided by Andy Shevchenko
PATCH v1:
- first submit
Link: https://lkml.org/lkml/2016/3/3/266
---
drivers/net
It will always be passed if the soc is tested the loopback cases. This
patch will fix this bug.
Signed-off-by: Kejian Yan <yankej...@huawei.com>
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 8 +
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.
As the User Manual describes, maximum value are 9728 for service ports and
1500 for debug ports, not always 9600. So it needs to be configured to
right value for the different port. The max frame len of ppe needs to be
set to the right as well.
Signed-off-by: Kejian Yan <yankej...@huawei.
It will always be passed if the soc is tested the loopback cases. This
patch will fix this bug.
Signed-off-by: Kejian Yan
---
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 8 +
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 37
drivers/net/ethernet
As the User Manual describes, maximum value are 9728 for service ports and
1500 for debug ports, not always 9600. So it needs to be configured to
right value for the different port. The max frame len of ppe needs to be
set to the right as well.
Signed-off-by: Kejian Yan
---
drivers/net/ethernet
here is the patch raising the performance of XGE by:
1)changes the way page management method for enet momery, and
2)reduces the count of rmb, and
3)adds Memory prefetching
Signed-off-by: Kejian Yan
---
change log:
v2:
fixes the review comments by Devid and joe:
- makes indented properly
here is the patch raising the performance of XGE by:
1)changes the way page management method for enet momery, and
2)reduces the count of rmb, and
3)adds Memory prefetching
Signed-off-by: Kejian Yan <yankej...@huawei.com>
---
change log:
v2:
fixes the review comments by Devid and joe:
-
60 matches
Mail list logo