4 ms·
> In Ubicloud’s case, enabling flowtables just took seven lines of code! Could have been six lines by combining these two lines: ip protocol tcp counter f
by rany_ 3y ago
> In Ubicloud’s case, enabling flowtables just took seven lines of code!
Could have been six lines by combining these two lines:
ip protocol tcp counter flow offload @ubi_flowtable
ip protocol udp counter flow offload @ubi_flowtable
into:
meta l4proto { tcp, udp } flow offload @ubi_flowtable
Also, their changes only work for IPv4. The above would work for both IPv4 and IPv6.
- deleted 3y ago[deleted]
- fdr 3y agoThat's a good one. Ubicloud has decent IPv6 support as we use it for our underlay network (in fact...for a while, as a prototype, it only supported IP6), but we missed a trick here. https://github.com/ubicloud/ubicloud/pull/1322 https://github.com/ubicloud/ubicloud/pull/1322
- rany_ 3y agoYou're most welcome, happy to help!