Skip to content

Commit

Permalink
net/hns3: fix typos on comments
Browse files Browse the repository at this point in the history
[ upstream commit db94014 ]

This patch fixed wrong word in comments.

Fixes: f53a793 ("net/hns3: add more hardware error types")
Fixes: d51867d ("net/hns3: add initialization")
Fixes: 411d23b ("net/hns3: support VLAN")
Fixes: 5f8845f ("net/hns3: process MAC interrupt")

Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
hushenggitcount authored and steevenlee committed Jun 8, 2021
1 parent 58155c9 commit bef47e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/net/hns3/hns3_ethdev.c
Expand Up @@ -377,7 +377,7 @@ hns3_vlan_filter_configure(struct hns3_adapter *hns, uint16_t vlan_id, int on)
* When port base vlan enabled, we use port base vlan as the vlan
* filter condition. In this case, we don't update vlan filter table
* when user add new vlan or remove exist vlan, just update the
* vlan list. The vlan id in vlan list will be writen in vlan filter
* vlan list. The vlan id in vlan list will be written in vlan filter
* table until port base vlan disabled
*/
if (hw->port_base_vlan_cfg.state == HNS3_PORT_BASE_VLAN_DISABLE) {
Expand Down Expand Up @@ -3759,8 +3759,8 @@ hns3_rx_buffer_calc(struct hns3_hw *hw, struct hns3_pkt_buf_alloc *buf_alloc)
* For different application scenes, the enabled port number, TC number
* and no_drop TC number are different. In order to obtain the better
* performance, software could allocate the buffer size and configure
* the waterline by tring to decrease the private buffer size according
* to the order, namely, waterline of valided tc, pfc disabled tc, pfc
* the waterline by trying to decrease the private buffer size according
* to the order, namely, waterline of valid tc, pfc disabled tc, pfc
* enabled tc.
*/
if (hns3_rx_buf_calc_all(hw, false, buf_alloc))
Expand Down Expand Up @@ -4708,7 +4708,7 @@ hns3_config_all_msix_error(struct hns3_hw *hw, bool enable)
* and belong to a different type from the MSI-x errors processed
* by the network driver.
*
* Network driver should open the new error report on initialition
* Network driver should open the new error report on initialization.
*/
val = hns3_read_dev(hw, HNS3_VECTOR0_OTER_EN_REG);
hns3_set_bit(val, HNS3_VECTOR0_ALL_MSIX_ERR_B, enable ? 1 : 0);
Expand Down

0 comments on commit bef47e0

Please sign in to comment.