git: acdfc0963946 - main - lagg: update capabilites on SIOCSIFMTU
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Nov 2021 09:43:26 UTC
The branch main has been updated by wma: URL: https://cgit.FreeBSD.org/src/commit/?id=acdfc09639467714e4ac2080d346251e266ea4a6 commit acdfc09639467714e4ac2080d346251e266ea4a6 Author: Wojciech Macek <wma@FreeBSD.org> AuthorDate: 2021-11-06 09:41:43 +0000 Commit: Wojciech Macek <wma@FreeBSD.org> CommitDate: 2021-11-06 09:43:08 +0000 lagg: update capabilites on SIOCSIFMTU Some NICs might have limited capabilities when Jumbo frames are used. For exampe some neta interfaces only support TX csum offload when the packet size is lower than a value specified in DT. Fix it by re-reading capabilities of children interfaces after MTU has been successfully changed. Found by: Jerome Tomczyk <jerome.tomczyk@stormshield.eu> Reviewed by: jhb Obtained from: Semihalf Sponsored by: Stormshield Differential revision: https://reviews.freebsd.org/D32724 --- sys/net/if_lagg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 8f7900277f01..87227136e667 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -1726,7 +1726,9 @@ lagg_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) (*lp->lp_ioctl)(lp->lp_ifp, cmd, data); } } + lagg_capabilities(sc); LAGG_XUNLOCK(sc); + VLAN_CAPABILITIES(ifp); break; default: