Commit Graph

  • e604dd3478 Add newlink/delink processing. Pim van Pelt 2021-08-24 18:11:51 +02:00
  • 6d2ce1cd83 Consolidate MTU and Link changes into one function. Pim van Pelt 2021-08-24 17:36:11 +02:00
  • c02656de22 Add thread barriers on non-mp-safe calls Pim van Pelt 2021-08-24 01:13:16 +02:00
  • d63fbd8a9a Allow NO_SUCH_ENTRY to count as successful 'removal' of neighbors. When an address is removed, VPP will invalidate the neighbor cache. This change allows the subsequent gratutious neigh deletion from Linux to be harmless. Pim van Pelt 2021-08-24 00:52:26 +02:00
  • 87742b4f54 Add netlink address add/del Pim van Pelt 2021-08-24 00:26:06 +02:00
  • 30bab1d3f9 Our first Netlink syncer! Pim van Pelt 2021-08-23 23:58:03 +02:00
  • c4e3043ea1 Add skeleton of Linux CP Netlink Listener Pim van Pelt 2021-08-23 13:48:38 +02:00
  • f2ab33341f Update README.md Pim van Pelt 2021-08-22 21:15:18 +02:00
  • 4705791743 Update README.md Pim van Pelt 2021-08-22 21:11:18 +02:00
  • ea1568b7cc Update README.md Pim van Pelt 2021-08-22 21:06:46 +02:00
  • caba21ba99 Add README.md and LICENSE Pim van Pelt 2021-08-22 15:46:19 +02:00
  • fee9776e87 Cleanup -- remove unused pair_add_sub() Pim van Pelt 2021-08-15 19:47:46 +02:00
  • 2d00de080b Protect VPP -> Linux state propagation behind flag Pim van Pelt 2021-08-15 16:07:53 +02:00
  • d23aab2d95 Add CLI for lcp-auto-subint Pim van Pelt 2021-08-15 14:45:04 +02:00
  • c2adb3262d Fix bug in find_outer_vlan() Pim van Pelt 2021-08-14 19:37:37 +02:00
  • 934446dcd9 Add automatic LCP creation Pim van Pelt 2021-08-14 17:20:31 +02:00
  • b3d8e75706 Start LCP auto-creation Pim van Pelt 2021-08-14 14:28:16 +02:00
  • 20e282655b fixstyle Pim van Pelt 2021-08-14 11:27:06 +02:00
  • 10f10d534c Ensure the plugin works well with namespaces Pim van Pelt 2021-08-14 09:40:43 +02:00
  • aab11196cf Sanitize some overly verbose logging ERR->{DBG,INFO} Pim van Pelt 2021-08-13 21:08:03 +02:00
  • 72f55fd901 Netlink namespaces! Pim van Pelt 2021-08-13 20:58:28 +02:00
  • 79a395b3c9 Clamp sub-int MTU to parent's MTU Pim van Pelt 2021-08-13 19:59:55 +02:00
  • f7e1bb951d Sync IPv4 and IPv6 addresses from VPP to LCP Pim van Pelt 2021-08-13 16:50:32 +02:00
  • 39bfa1615f Add sync of VPP mtu changes into Linux interfaces Pim van Pelt 2021-08-13 15:02:31 +02:00
  • d8c988273e fixstyle, now with upstream .clang-* files Pim van Pelt 2021-08-13 14:37:12 +02:00
  • cc61e7694d fixstyle Pim van Pelt 2021-08-13 14:36:25 +02:00
  • a3dc56c014 Force a sync of interfaces when VPP phy changes state Pim van Pelt 2021-08-13 14:33:03 +02:00
  • 7c15c84f6c Sync interface state from VPP to LCP Pim van Pelt 2021-08-12 22:29:13 +02:00
  • 97b9894dce Restore the plugin to its original state Pim van Pelt 2021-08-12 21:18:44 +02:00
  • a6e71359c5 Add the ability to create QinQ and QinAD Pim van Pelt 2021-08-12 19:14:06 +02:00
  • 7c3e1eaf3f Fix two crashes and one potential crash Pim van Pelt 2021-08-12 16:38:10 +02:00
  • d43b583c7b Initialize the TAP host state from the VPP state Pim van Pelt 2021-08-12 15:22:35 +02:00
  • de5c01280e Refuse to create an LCP for sub-interfaces that does not have exact-match set Pim van Pelt 2021-08-12 12:58:31 +02:00
  • 954385fd86 Add the ability to set the VLAN protocol on the netlink interfaces -- this will be needed when the VPP interface outer is dot1ad rather than dot1q; Note: this change took for-ever to create! I was stumped on the set_protocol() call succeeding but the add_link() call returning 'Protocol mismatch'; but this was simply a missing ntohs() wrapper on the protocol, pff. Golden hint on https://github.com/thom311/libnl/blob/master/lib/route/link/vlan.c#L454 Pim van Pelt 2021-08-11 18:43:48 +02:00
  • 3c1ccbfcc6 Add a bunch of useful logging. Pim van Pelt 2021-08-10 22:03:40 +02:00
  • cc0be8341f Add some rambling notes on VPP and LCP and linux interface naming Pim van Pelt 2021-08-10 20:49:55 +02:00
  • eea724445f Catch null on non-existent interface Pim van Pelt 2021-08-09 00:19:38 +02:00
  • 915e3598ac Add a bunch more interface phy_add logging to help auto-create/delete LCP in a followup commit Pim van Pelt 2021-08-09 00:16:03 +02:00
  • d11c4fccbf Remove lcp_if_process() Pim van Pelt 2021-08-08 23:08:43 +02:00
  • f408a55cde Add a note (a mental note, really, on why we won't do netlink VPP interface creations Pim van Pelt 2021-08-08 23:03:48 +02:00
  • 69d7cb73cc Copy L3 VPP interface MTU if available Pim van Pelt 2021-08-08 21:53:04 +02:00
  • 4b79f042bf Remove hardcoded 9216 with ETHERNET_MAX_PACKET_BYTES Pim van Pelt 2021-08-08 21:40:56 +02:00
  • 8111d1e9a8 Force MTU 9216 on lcpng TAP interfaces Pim van Pelt 2021-08-08 21:35:13 +02:00
  • 2f51a196fc cosmetic - rename 'lcp-itf-process' to 'lcpng-if-process' Pim van Pelt 2021-08-08 21:21:18 +02:00
  • ca273dc953 Remove ability to override netns Pim van Pelt 2021-08-08 20:54:43 +02:00
  • f3fa25d897 Rename CLI paths to lcpng Pim van Pelt 2021-08-08 20:37:39 +02:00
  • 80934a5c46 Initial checkin - renamed the files to avoid clashing with 'lcp' and 'linux-cp' plugin Pim van Pelt 2021-08-08 19:50:25 +02:00