Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rcar 5.1.6.rc3 l3 hw offload #3

Conversation

LKomaryanskiy
Copy link
Collaborator

No description provided.

Signed-off-by: Leonid Komarianskyi <leonid_komarianskyi@epam.com>
L3 offload requires implementing FIB notifier for switch device, which
is responsible for handling FIB events and rule changes. The notifier
callback is invoked when interface initializes, or some new IP route
adds. In this case, the notifier should handle add/delete route and
make appropriate configuration on HW side. The L3 HW offload on
S4 R-Switch is implemented using MFWD L3 routing, perfect filters,
and L23 update table. When the IP routing callback is invoked, it adds
a new route via Perfect filters to the existing interface and caches
information about which packets can be routed using this interface.
When packets go from R-Switch to outside they firstly come to
rx_learning_chain, where they will be analyzed, and if match with
cached before routing rules, the appropriate L3 rule will be added
via L3 IPv4/v6 hash extract. After that, packets that match this
stream ID will be forwarded to the appropriate destination port with
updating destination MAC and TTL via L23 Update logic.

Signed-off-by: Leonid Komarianskyi <leonid_komarianskyi@epam.com>
@firscity firscity closed this Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants