]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add unlikely for error check
authorPeng Li <lipeng321@huawei.com>
Thu, 28 Jun 2018 04:12:23 +0000 (12:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2018 02:06:34 +0000 (11:06 +0900)
commitdb7a725f294e2147c13fff55d9ad2bb8e8c86ba3
tree84d6cb7fb276dc9c873a244e2b2bf8d689bc74a8
parentf269221cc0adc8e420ae874dc25c94aa3bd8d238
net: hns3: add unlikely for error check

The first bd of a packet is invalid and invalid ring head for tx
IRQ is not offen, they may occur when there is error,
Add unlikely for error check branch is better for performance.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c