netifd: vxlan: refactor mapping of boolean attrs
authorJohannes Kimmel <fff@bareminimum.eu>
Fri, 4 Sep 2020 02:59:41 +0000 (04:59 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 12 Sep 2020 19:12:48 +0000 (21:12 +0200)
commit226566b967dc4ef4d83ed7844b8ad746f4306f8d
treed02f90b9f2548a6ae5262ebceb1f8ce7ee55936b
parenta3c033e2afc289672e0ed4b8d8a835d509715af8
netifd: vxlan: refactor mapping of boolean attrs

Add a small function to handle boolean options and make use of it to handle:
  - rxcsum
  - txcsum

Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
system-linux.c