]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 5 Sep 2018 12:18:37 +0000 (14:18 +0200)
commit2ea8667b301739c20a8099c99d8f08ea12a899ad
tree6094605ae99c23f325b1c90b646e472bb649a12d
parentffa051fa68ac322f370e7a6baf9576024723d925
net: hns3: add unlikely for error check

BugLink: https://bugs.launchpad.net/bugs/1787477
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>
(cherry picked from commit 0e6084aa1c4eba8913143ea30254d50ed01724eb)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c