ipv4: Remove flowi from struct rtable.
The only necessary parts are the src/dst addresses, the interface indexes, the TOS, and the mark. The rest is unnecessary bloat, which amounts to nearly 50 bytes on 64-bit. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -143,7 +143,7 @@ static int route4_classify(struct sk_buff *skb, struct tcf_proto *tp,
|
||||
if (head == NULL)
|
||||
goto old_method;
|
||||
|
||||
iif = ((struct rtable *)dst)->fl.iif;
|
||||
iif = ((struct rtable *)dst)->rt_iif;
|
||||
|
||||
h = route4_fastmap_hash(id, iif);
|
||||
if (id == head->fastmap[h].id &&
|
||||
|
Reference in New Issue
Block a user