kernel: 5.10: simplify logic in packet mangling patch
authorMathias Kresin <dev@kresin.me>
Sat, 23 Oct 2021 19:14:04 +0000 (21:14 +0200)
committerMathias Kresin <dev@kresin.me>
Tue, 2 Nov 2021 21:36:41 +0000 (22:36 +0100)
commitf7f12495bc9725e221b595680c47c4240d437abb
tree20d48567502eee6745f2a0c5e61273cebb99f3e8
parent1470009bf88ddde3c5e22ecb8e0f38d20757d6bd
kernel: 5.10: simplify logic in packet mangling patch

I had quite a hard time to understand what the change to net/core/dev.c
is supposed to do.

Simplify the change by returning NETDEV_TX_OK in case a eth_mangle_tx
callback was set but returned NULL instead of setting the return value
in the else branch.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/generic/hack-5.10/721-net-add-packet-mangeling.patch