Commit ba41380
ipv6: Add flow label to route get requests
The default IPv6 multipath hash policy takes the flow label into account
when calculating a multipath hash and previous patches added a flow
label selector to IPv6 FIB rules.
Allow user space to specify a flow label in route get requests by adding
a new netlink attribute and using its value to populate the "flowlabel"
field in the IPv6 flow info structure prior to a route lookup.
Deny the attribute in RTM_{NEW,DEL}ROUTE requests by checking for it in
rtm_to_fib6_config() and returning an error if present.
A subsequent patch will use this capability to test the new flow label
selector in IPv6 FIB rules.
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent c72004a commit ba41380
2 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
396 | 397 | | |
397 | 398 | | |
398 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5005 | 5005 | | |
5006 | 5006 | | |
5007 | 5007 | | |
| 5008 | + | |
5008 | 5009 | | |
5009 | 5010 | | |
5010 | 5011 | | |
| |||
5030 | 5031 | | |
5031 | 5032 | | |
5032 | 5033 | | |
| 5034 | + | |
| 5035 | + | |
| 5036 | + | |
| 5037 | + | |
| 5038 | + | |
| 5039 | + | |
5033 | 5040 | | |
5034 | 5041 | | |
5035 | 5042 | | |
| |||
6013 | 6020 | | |
6014 | 6021 | | |
6015 | 6022 | | |
| 6023 | + | |
| 6024 | + | |
| 6025 | + | |
| 6026 | + | |
| 6027 | + | |
| 6028 | + | |
| 6029 | + | |
6016 | 6030 | | |
6017 | 6031 | | |
6018 | 6032 | | |
| |||
6027 | 6041 | | |
6028 | 6042 | | |
6029 | 6043 | | |
| 6044 | + | |
6030 | 6045 | | |
6031 | 6046 | | |
6032 | 6047 | | |
| |||
6049 | 6064 | | |
6050 | 6065 | | |
6051 | 6066 | | |
| 6067 | + | |
6052 | 6068 | | |
6053 | 6069 | | |
6054 | 6070 | | |
| |||
6057 | 6073 | | |
6058 | 6074 | | |
6059 | 6075 | | |
6060 | | - | |
6061 | 6076 | | |
6062 | 6077 | | |
6063 | 6078 | | |
| |||
6103 | 6118 | | |
6104 | 6119 | | |
6105 | 6120 | | |
| 6121 | + | |
| 6122 | + | |
| 6123 | + | |
6106 | 6124 | | |
6107 | 6125 | | |
6108 | 6126 | | |
| |||
0 commit comments