Don't use indirect remap functions for conf_ports()
Now that we've delayed initialization of the UDP specific "reverse" map until udp_init(), the only difference between the various 'remap' functions used in conf_ports() is which array they target. So, simplify by open coding the logic into conf_ports() with a pointer to the correct mapping array. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:

committed by
Stefano Brivio

parent
1467a35b5a
commit
f5a31ee94c
2
udp.h
2
udp.h
@@ -18,8 +18,6 @@ int udp_init(struct ctx *c);
|
||||
void udp_timer(struct ctx *c, const struct timespec *ts);
|
||||
void udp_update_l2_buf(const unsigned char *eth_d, const unsigned char *eth_s,
|
||||
const uint32_t *ip_da);
|
||||
void udp_remap_to_tap(struct ctx *c, in_port_t port, in_port_t delta);
|
||||
void udp_remap_to_init(struct ctx *c, in_port_t port, in_port_t delta);
|
||||
|
||||
/**
|
||||
* union udp_epoll_ref - epoll reference portion for TCP connections
|
||||
|
Reference in New Issue
Block a user