0063-vxlan-add-options-to-enable-and-disable-UDP-checksums.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Wed, 24 Jan 2018 13:51:45 +0100
  3. Subject: vxlan: add options to enable and disable UDP checksums
  4. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  5. diff --git a/package/network/config/vxlan/Makefile b/package/network/config/vxlan/Makefile
  6. index a471d4e90cbe30c1d1dd01dbf7553995d8c0485e..aeceb9cd884e517b2f274925637b62a538bfa70e 100644
  7. --- a/package/network/config/vxlan/Makefile
  8. +++ b/package/network/config/vxlan/Makefile
  9. @@ -1,7 +1,7 @@
  10. include $(TOPDIR)/rules.mk
  11. PKG_NAME:=vxlan
  12. -PKG_VERSION:=1
  13. +PKG_VERSION:=2
  14. PKG_LICENSE:=GPL-2.0
  15. include $(INCLUDE_DIR)/package.mk
  16. diff --git a/package/network/config/vxlan/files/vxlan.sh b/package/network/config/vxlan/files/vxlan.sh
  17. index 27ccd8f12759f69c7c226cac0c923335b8ccc6a8..d055d41edc59f50c0c132849bbcd0235edeef5b9 100755
  18. --- a/package/network/config/vxlan/files/vxlan.sh
  19. +++ b/package/network/config/vxlan/files/vxlan.sh
  20. @@ -15,8 +15,8 @@ vxlan_generic_setup() {
  21. local link="$cfg"
  22. - local port vid ttl tos mtu macaddr zone
  23. - json_get_vars port vid ttl tos mtu macaddr zone
  24. + local port vid ttl tos mtu macaddr zone rxcsum txcsum
  25. + json_get_vars port vid ttl tos mtu macaddr zone rxcsum txcsum
  26. proto_init_update "$link" 1
  27. @@ -36,6 +36,8 @@ vxlan_generic_setup() {
  28. [ -n "$port" ] && json_add_int port "$port"
  29. [ -n "$vid" ] && json_add_int id "$vid"
  30. [ -n "$macaddr" ] && json_add_string macaddr "$macaddr"
  31. + [ -n "$rxcsum" ] && json_add_boolean rxcsum "$rxcsum"
  32. + [ -n "$txcsum" ] && json_add_boolean txcsum "$txcsum"
  33. json_close_object
  34. proto_close_tunnel