Commit e227ee9
net/mlx5: Generalize Flow Context for new crypto fields
In order to support MACsec offload (and maybe some other crypto features
in the future), generalize flow action parameters / defines to be used by
crypto offlaods other than IPsec.
The following changes made:
ipsec_obj_id field at flow action context was changed to crypto_obj_id,
intreduced a new crypto_type field where IPsec is the default zero type
for backward compatibility.
Action ipsec_decrypt was changed to crypto_decrypt.
Action ipsec_encrypt was changed to crypto_encrypt.
IPsec offload code was updated accordingly for backward compatibility.
Signed-off-by: Lior Nahmanson <liorna@nvidia.com>
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent d1b2234 commit e227ee9
File tree
4 files changed
+20
-11
lines changed- drivers/net/ethernet/mellanox/mlx5/core
- en_accel
- include/linux/mlx5
4 files changed
+20
-11
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
| 392 | + | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| |||
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | | - | |
| 448 | + | |
448 | 449 | | |
449 | 450 | | |
450 | 451 | | |
| |||
500 | 501 | | |
501 | 502 | | |
502 | 503 | | |
503 | | - | |
| 504 | + | |
504 | 505 | | |
505 | 506 | | |
506 | 507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
581 | 584 | | |
582 | 585 | | |
583 | 586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
248 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3310 | 3310 | | |
3311 | 3311 | | |
3312 | 3312 | | |
3313 | | - | |
3314 | | - | |
| 3313 | + | |
| 3314 | + | |
3315 | 3315 | | |
3316 | 3316 | | |
3317 | 3317 | | |
| |||
3321 | 3321 | | |
3322 | 3322 | | |
3323 | 3323 | | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
3324 | 3328 | | |
3325 | 3329 | | |
3326 | 3330 | | |
| |||
3374 | 3378 | | |
3375 | 3379 | | |
3376 | 3380 | | |
3377 | | - | |
| 3381 | + | |
3378 | 3382 | | |
3379 | 3383 | | |
3380 | 3384 | | |
| |||
3386 | 3390 | | |
3387 | 3391 | | |
3388 | 3392 | | |
3389 | | - | |
| 3393 | + | |
3390 | 3394 | | |
3391 | 3395 | | |
3392 | 3396 | | |
| |||
0 commit comments