net: hinic: Set max_mtu/min_mtu directly to simplify the code.
authorcaihuoqing <cai.huoqing@linux.dev>
Mon, 24 Oct 2022 10:33:35 +0000 (18:33 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Oct 2022 02:42:34 +0000 (19:42 -0700)
commit022f19cf361bdbc72b51e684573c847c4f37478d
tree0b4ff5b4737084b1b5ec064cf76e2e647fcd2430
parenta264228c8bfa1908bdd756bfb27227b51ddf4cbb
net: hinic: Set max_mtu/min_mtu directly to simplify the code.

Set max_mtu/min_mtu directly to avoid making the validity judgment
when set mtu, because the judgment is made in net/core: dev_validate_mtu,
so to simplify the code.

Signed-off-by: caihuoqing <cai.huoqing@linux.dev>
Link: https://lore.kernel.org/r/20221024103349.4494-1-cai.huoqing@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/huawei/hinic/hinic_dev.h
drivers/net/ethernet/huawei/hinic/hinic_main.c
drivers/net/ethernet/huawei/hinic/hinic_port.c