#
13265568 |
| 03-Nov-2022 |
Cai Huoqing <cai.huoqing@linux.dev> |
net: hinic: Add control command support for VF PMD driver in DPDK
HINIC has a mailbox for PF-VF communication and the VF driver could send port control command to PF driver via mailbox.
The control
net: hinic: Add control command support for VF PMD driver in DPDK
HINIC has a mailbox for PF-VF communication and the VF driver could send port control command to PF driver via mailbox.
The control command only can be set to register in PF, so add support in PF driver for VF PMD driver control command when VF PMD driver work with linux PF driver.
Then, no need to add handlers to nic_vf_cmd_msg_handler[], because the host driver just forwards it to the firmware. Actually the firmware works on a coprocessor MGMT_CPU(inside the NIC) which will recv and deal with these commands.
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
ac33d7ae |
| 03-Nov-2022 |
Cai Huoqing <cai.huoqing@linux.dev> |
net: hinic: Convert the cmd code from decimal to hex to be more readable
The print cmd code is in hex, so using hex cmd code intead of decimal is easy to check the value with print info.
Signed-off
net: hinic: Convert the cmd code from decimal to hex to be more readable
The print cmd code is in hex, so using hex cmd code intead of decimal is easy to check the value with print info.
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
2b291ee6 |
| 21-Sep-2022 |
Zhengchao Shao <shaozhengchao@huawei.com> |
net: hinic: remove unused functions
hinic_hwdev_max_num_qpas() and hinic_msix_attr_get() are no longer called, remove them. Also the macro HINIC_MSIX_ATTR_GET is also not called, remove it.
Signed-
net: hinic: remove unused functions
hinic_hwdev_max_num_qpas() and hinic_msix_attr_get() are no longer called, remove them. Also the macro HINIC_MSIX_ATTR_GET is also not called, remove it.
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
73f25f16 |
| 21-Sep-2022 |
Zhengchao Shao <shaozhengchao@huawei.com> |
net: hinic: change type of function to be static
Functions are called only in one file, change their type to static.
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: Jakub Ki
net: hinic: change type of function to be static
Functions are called only in one file, change their type to static.
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
5215e162 |
| 28-Aug-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add support to query function table
add debugfs node for querying function table, for example: cat /sys/kernel/debug/hinic/0000:15:00.0/func_table/valid
Signed-off-by: Luo bin <luobin9@huawe
hinic: add support to query function table
add debugfs node for querying function table, for example: cat /sys/kernel/debug/hinic/0000:15:00.0/func_table/valid
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
1dab5877 |
| 09-Aug-2020 |
Luo bin <luobin9@huawei.com> |
hinic: fix strncpy output truncated compile warnings
fix the compile warnings of 'strncpy' output truncated before terminating nul copying N bytes from a string of the same length
Signed-off-by: Lu
hinic: fix strncpy output truncated compile warnings
fix the compile warnings of 'strncpy' output truncated before terminating nul copying N bytes from a string of the same length
Signed-off-by: Luo bin <luobin9@huawei.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
088c5f0d |
| 04-Aug-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add generating mailbox random index support
add support to generate mailbox random id of VF to ensure that mailbox messages PF received are from the correct VF.
Signed-off-by: Luo bin <luobi
hinic: add generating mailbox random index support
add support to generate mailbox random id of VF to ensure that mailbox messages PF received are from the correct VF.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
c15850c7 |
| 25-Jul-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add support to handle hw abnormal event
add support to handle hw abnormal event such as hardware failure, cable unplugged,link error
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by
hinic: add support to handle hw abnormal event
add support to handle hw abnormal event such as hardware failure, cable unplugged,link error
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
5e126e7c |
| 15-Jul-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add firmware update support
add support to update firmware by the devlink flashing API
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
#
2ac84cd1 |
| 28-Jun-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add support to get eeprom information
add support to get eeprom information from the plug-in module with ethtool -m cmd.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. M
hinic: add support to get eeprom information
add support to get eeprom information from the plug-in module with ethtool -m cmd.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
07afcc7a |
| 28-Jun-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add support to identify physical device
add support to identify physical device by flashing an LED attached to it with ethtool -p cmd.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-
hinic: add support to identify physical device
add support to identify physical device by flashing an LED attached to it with ethtool -p cmd.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
4aa218a4 |
| 28-Jun-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add self test support
add support to excute internal and external loopback test with ethtool -t cmd.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemlo
hinic: add self test support
add support to excute internal and external loopback test with ethtool -t cmd.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
a0337c0d |
| 28-Jun-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add support to set and get irq coalesce
add support to set TX/RX irq coalesce params with ethtool -C and get these params with ethtool -c.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-
hinic: add support to set and get irq coalesce
add support to set TX/RX irq coalesce params with ethtool -C and get these params with ethtool -c.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
ea256222 |
| 28-Jun-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add support to set and get pause params
add support to set pause params with ethtool -A and get pause params with ethtool -a. Also remove set_link_ksettings ops for VF and enable pause by def
hinic: add support to set and get pause params
add support to set pause params with ethtool -A and get pause params with ethtool -a. Also remove set_link_ksettings ops for VF and enable pause by default.
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
bcab6782 |
| 13-May-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add set_ringparam ethtool_ops support
support to change TX/RX queue depth with ethtool -G
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
#
01f2b3da |
| 11-May-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add link_ksettings ethtool_ops support
add set_link_ksettings implementation and improve the implementation of get_link_ksettings
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: D
hinic: add link_ksettings ethtool_ops support
add set_link_ksettings implementation and improve the implementation of get_link_ksettings
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
72ef908b |
| 08-May-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add three net_device_ops of vf
adds ndo_set_vf_rate/ndo_set_vf_spoofchk/ndo_set_vf_link_state to configure netdev of virtual function
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-b
hinic: add three net_device_ops of vf
adds ndo_set_vf_rate/ndo_set_vf_spoofchk/ndo_set_vf_link_state to configure netdev of virtual function
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
#
7dd29ee1 |
| 25-Apr-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add sriov feature support
adds support of basic sriov feature including initialization and tx/rx capabilities of virtual function
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: D
hinic: add sriov feature support
adds support of basic sriov feature including initialization and tx/rx capabilities of virtual function
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
a425b6e1 |
| 25-Apr-2020 |
Luo bin <luobin9@huawei.com> |
hinic: add mailbox function support
virtual function and physical function can communicate with each other through mailbox channel supported by hw
Signed-off-by: Luo bin <luobin9@huawei.com> Signed
hinic: add mailbox function support
virtual function and physical function can communicate with each other through mailbox channel supported by hw
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
d2ed69ce |
| 27-Feb-2020 |
Luo bin <luobin9@huawei.com> |
hinic: fix a bug of setting hw_ioctxt
a reserved field is used to signify prime physical function index in the latest firmware version, so we must assign a value to it correctly
Signed-off-by: Luo
hinic: fix a bug of setting hw_ioctxt
a reserved field is used to signify prime physical function index in the latest firmware version, so we must assign a value to it correctly
Signed-off-by: Luo bin <luobin9@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
61a582be |
| 05-Jul-2019 |
Xue Chaojing <xuechaojing@huawei.com> |
hinic: add fw version query
This patch adds firmware version query in ethtool -i.
Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Sig
hinic: add fw version query
This patch adds firmware version query in ethtool -i.
Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
aebd17b7 |
| 29-Jun-2019 |
Xue Chaojing <xuechaojing@huawei.com> |
hinic: add vlan offload support
This patch adds vlan offload support for the HINIC driver.
Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
#
e54fbbdf |
| 24-Jun-2019 |
Xue Chaojing <xuechaojing@huawei.com> |
hinic: implement the statistical interface of ethtool
This patch implement the statistical interface of ethtool, user can use ethtool -S to show hinic statistics.
Signed-off-by: Xue Chaojing <xuech
hinic: implement the statistical interface of ethtool
This patch implement the statistical interface of ethtool, user can use ethtool -S to show hinic statistics.
Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
4fdc51bb |
| 18-Jun-2019 |
Xue Chaojing <xuechaojing@huawei.com> |
hinic: add support for rss parameters with ethtool
This patch adds support rss parameters with ethtool, user can change hash key, hash indirection table, hash function by ethtool -X, and show rss pa
hinic: add support for rss parameters with ethtool
This patch adds support rss parameters with ethtool, user can change hash key, hash indirection table, hash function by ethtool -X, and show rss parameters by ethtool -x.
Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
#
421e9526 |
| 18-Jun-2019 |
Xue Chaojing <xuechaojing@huawei.com> |
hinic: add rss support
This patch adds rss support for the HINIC driver.
Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|