commit | 47e7b13b0aff869465585d36a8d5075fe17cb90a | [log] [tgz] |
---|---|---|
author | Yunsheng Lin <linyunsheng@huawei.com> | Sat Feb 23 17:22:10 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Sun Feb 24 20:27:50 2019 -0800 |
tree | 5d084faddd5b53e1adb802813bb621a3531dc638 | |
parent | 3fe13ed95dd3c4aede3313a2dd2d589c207b51d0 [diff] |
net: hns3: limit some variable scope in critical data path This patch limits some variables' scope as much as possible in hns3_fill_desc. Also, only set l3_type and l4_type when necessary. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Huazhong tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>