Skip to content

Commit

Permalink
net/hns3: fix return value for unsupported tuple
Browse files Browse the repository at this point in the history
[ upstream commit 66689dc ]

Driver should return false for unsupported tuple.

Fixes: 18a4b4c ("net/hns3: add default to switch when parsing fd tuple")

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
LiHuiSong1 authored and steevenlee committed Jul 19, 2022
1 parent ecb5bc3 commit 35768b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hns3/hns3_fdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ static bool hns3_fd_convert_tuple(struct hns3_hw *hw,
break;
default:
hns3_warn(hw, "not support tuple of (%u)", tuple);
break;
return false;
}
return true;
}
Expand Down

0 comments on commit 35768b6

Please sign in to comment.