[PATCH 0/2] Small cleanups to splice forwarding logic
While working on more flexible forwarding stuff, noticed a couple of warts here. David Gibson (2): fwd: Remove now-unnecessary handling of unspecified oaddr from splice fwd: Minor cleanup to fwd_nat_from_splice() fwd.c | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) -- 2.52.0
fwd_nat_from_splice() has several cases that deal with the possibility of
ini->oaddr being unspecified. That used to be a possible case, but since
e3c4c4175ce6 ("tcp: Always populate oaddr field for socket initiated
flows") and 59cc89f4cc01 ("udp, udp_flow: Track our specific address on
socket interfaces") we now always populate ini->oaddr with a specified
address for all flows.
Remove the now-unnecessary fallback logic.
Signed-off-by: David Gibson
participants (1)
-
David Gibson