xdp-project / xdp-tutorial

XDP tutorial
2.5k stars 580 forks source link

packet03-redirecting: remove refs to tx_port map from assignment 04 #282

Closed mdr78 closed 2 years ago

mdr78 commented 2 years ago

Looking up the tx_port map for a 1:1 mapping in packet 03 assignment 04 is pointless. If bpf_fib_lookup returns a successful lookup, it is much simplier and more obvious to directly call bpf_redirect with the information from the fib without the map lookup.

Other minor documentation fixes also included.

mdr78 commented 2 years ago

@tohojo ok - I will update the README and resubmit.

mdr78 commented 2 years ago

Hi,

PR has been updated with the requested changes.

Ray K

mdr78 commented 2 years ago

Found one other issue, but hopefully this is the last one :)

Resolved, apologies for missing that.