Commit 62f4856
loader: retry with xdp frags
The commit adds retry logic in case the XDP program loading failed with
the `invalid argument` error. The error might indicate that the network
interface is configured with a jumbo MTU, so we can retry loading after
setting the `BPF_F_XDP_HAS_FRAGS` flag and hope that the NIC driver is XDP
Fragment aware.
Signed-off-by: viktor-kurchenko <viktor.kurchenko@isovalent.com>1 parent 657975d commit 62f4856
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
157 | 175 | | |
158 | 176 | | |
159 | 177 | | |
| |||
0 commit comments