Skip to content
Commit 022f19cf authored by caihuoqing's avatar caihuoqing Committed by Jakub Kicinski
Browse files

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: default avatarcaihuoqing <cai.huoqing@linux.dev>
Link: https://lore.kernel.org/r/20221024103349.4494-1-cai.huoqing@linux.dev


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a264228c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment