mirror of
https://github.com/qosmio/nss-packages.git
synced 2025-12-18 01:01:43 +00:00
`tx-checksumming` breaks multicast traffic over mesh interfaces. Add a check in hotplug script to see if interface is mesh interface and automatically disable `tx-checksumming`.
18 lines
484 B
Bash
18 lines
484 B
Bash
#!/bin/sh
|
|
|
|
[ "$ACTION" != "add" ] && exit
|
|
|
|
. /lib/netifd/offload/disable_offloads.sh
|
|
|
|
if [ "$ACTION" = add ] && [ -n "$INTERFACE" ]; then
|
|
disable_offload "$INTERFACE"
|
|
# Disable tx-checksumming for mesh interfaces, as it breaks multicast traffic
|
|
if [ "$DEVTYPE" = "wlan" ]; then
|
|
if ubus call network.wireless status | jsonfilter -e '@[*].interfaces[@.config.mode="mesh"].ifname' | grep -q "$INTERFACE"; then
|
|
disable_feature tx-checksumming "$INTERFACE"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
exit 0
|