diff options
author | Taehee Yoo <ap420073@gmail.com> | 2020-04-23 13:40:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-24 16:42:40 -0700 |
commit | 7f327080364abccf923fa5a5b24e038eb0ba1407 (patch) | |
tree | f3ce39d5edf3d6abd88f7844625499e9523505eb /drivers/firmware/efi/capsule-loader.c | |
parent | c651b461b55b82029f1e78e9430bde1a0d7ec5af (diff) |
macsec: avoid to set wrong mtu
When a macsec interface is created, the mtu is calculated with the lower
interface's mtu value.
If the mtu of lower interface is lower than the length, which is needed
by macsec interface, macsec's mtu value will be overflowed.
So, if the lower interface's mtu is too low, macsec interface's mtu
should be set to 0.
Test commands:
ip link add dummy0 mtu 10 type dummy
ip link add macsec0 link dummy0 type macsec
ip link show macsec0
Before:
11: macsec0@dummy0: <BROADCAST,MULTICAST,M-DOWN> mtu 4294967274
After:
11: macsec0@dummy0: <BROADCAST,MULTICAST,M-DOWN> mtu 0
Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/firmware/efi/capsule-loader.c')
0 files changed, 0 insertions, 0 deletions