diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-03-27 15:34:20 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-03-28 14:35:48 +0100 |
| commit | 559d4dcbd3593f6a7fc1cefd12666f56a1901652 (patch) | |
| tree | 336396f8d3a07717a1ae43f402af1e75043e8a10 /test | |
| parent | 1f974cc68c63b1d4c3b1b8fd6ae612b3308cac2c (diff) | |
| download | passt-559d4dcbd3593f6a7fc1cefd12666f56a1901652.tar passt-559d4dcbd3593f6a7fc1cefd12666f56a1901652.tar.gz passt-559d4dcbd3593f6a7fc1cefd12666f56a1901652.tar.bz2 passt-559d4dcbd3593f6a7fc1cefd12666f56a1901652.tar.lz passt-559d4dcbd3593f6a7fc1cefd12666f56a1901652.tar.xz passt-559d4dcbd3593f6a7fc1cefd12666f56a1901652.tar.zst passt-559d4dcbd3593f6a7fc1cefd12666f56a1901652.zip | |
fwd: Store forwarding tables indexed by (origin) pif
Currently we store the inbound (PIF_HOST) and outbound (PIF_SPLICE)
forwarding tables in separate fields of struct ctx. In a number of places
this requires somewhat awkward if or switch constructs to select the
right table for updates. Conceptually simplify that by using an index of
forwarding tables by pif, which as a bonus keeps track generically which
pifs have implemented forwarding tables so far.
For now this doesn't simplify a lot textually, because many places that
need this also have other special cases to apply by pif. It does simplify
a few crucial places though, and we expect it will become more useful as
the flexibility of the forwarding table is improved.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
