e8d13548 | 15-Oct-2024 |
Jijie Shao <shaojijie@huawei.com> |
net: hibmcge: Implement some ethtool_ops functions
Implement the .get_drvinfo .get_link .get_link_ksettings to get the basic information and working status of the driver. Implement the .set_link_kse
net: hibmcge: Implement some ethtool_ops functions
Implement the .get_drvinfo .get_link .get_link_ksettings to get the basic information and working status of the driver. Implement the .set_link_ksettings to modify the rate, duplex, and auto-negotiation status.
Signed-off-by: Jijie Shao <shaojijie@huawei.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
f72e2559 | 15-Oct-2024 |
Jijie Shao <shaojijie@huawei.com> |
net: hibmcge: Implement rx_poll function to receive packets
Implement rx_poll function to read the rx descriptor after receiving the rx interrupt. Adjust the skb based on the descriptor to complete
net: hibmcge: Implement rx_poll function to receive packets
Implement rx_poll function to read the rx descriptor after receiving the rx interrupt. Adjust the skb based on the descriptor to complete the reception of the packet.
Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
40735e75 | 15-Oct-2024 |
Jijie Shao <shaojijie@huawei.com> |
net: hibmcge: Implement .ndo_start_xmit function
Implement .ndo_start_xmit function to fill the information of the packet to be transmitted into the tx descriptor, and then the hardware will transmi
net: hibmcge: Implement .ndo_start_xmit function
Implement .ndo_start_xmit function to fill the information of the packet to be transmitted into the tx descriptor, and then the hardware will transmit the packet using the information in the tx descriptor. In addition, we also implemented the tx_handler function to enable the tx descriptor to be reused, and .ndo_tx_timeout function to print some information when the hardware is busy.
Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
ff4edac6 | 15-Oct-2024 |
Jijie Shao <shaojijie@huawei.com> |
net: hibmcge: Implement some .ndo functions
Implement the .ndo_open() .ndo_stop() .ndo_set_mac_address() and .ndo_change_mtu functions(). And .ndo_validate_addr calls the eth_validate_addr function
net: hibmcge: Implement some .ndo functions
Implement the .ndo_open() .ndo_stop() .ndo_set_mac_address() and .ndo_change_mtu functions(). And .ndo_validate_addr calls the eth_validate_addr function directly
Signed-off-by: Jijie Shao <shaojijie@huawei.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
4d089035 | 15-Oct-2024 |
Jijie Shao <shaojijie@huawei.com> |
net: hibmcge: Add interrupt supported in this module
The driver supports four interrupts: TX interrupt, RX interrupt, mdio interrupt, and error interrupt.
Actually, the driver does not use the mdio
net: hibmcge: Add interrupt supported in this module
The driver supports four interrupts: TX interrupt, RX interrupt, mdio interrupt, and error interrupt.
Actually, the driver does not use the mdio interrupt. Therefore, the driver does not request the mdio interrupt.
The error interrupt distinguishes different error information by using different masks. To distinguish different errors, the statistics count is added for each error.
To ensure the consistency of the code process, masks are added for the TX interrupt and RX interrupt.
This patch implements interrupt request, and provides a unified entry for the interrupt handler function. However, the specific interrupt handler function of each interrupt is not implemented currently.
Because of pcim_enable_device(), the interrupt vector is already device managed and does not need to be free actively.
Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
a239b2b1 | 15-Oct-2024 |
Jijie Shao <shaojijie@huawei.com> |
net: hibmcge: Add mdio and hardware configuration supported in this module
Implements the C22 read and write PHY registers interfaces.
Some hardware interfaces related to the PHY are also implement
net: hibmcge: Add mdio and hardware configuration supported in this module
Implements the C22 read and write PHY registers interfaces.
Some hardware interfaces related to the PHY are also implemented in this patch.
Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
fc1992ba | 15-Oct-2024 |
Jijie Shao <shaojijie@huawei.com> |
net: hibmcge: Add read/write registers supported through the bar space
Add support for to read and write registers through the pic bar space.
Some driver parameters, such as mac_id, are determined
net: hibmcge: Add read/write registers supported through the bar space
Add support for to read and write registers through the pic bar space.
Some driver parameters, such as mac_id, are determined by the board form. Therefore, these parameters are initialized from the register as device specifications.
the device specifications register are initialized and written by bmc. driver will read these registers when loading.
Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|