Commit 542a58f
gve: introduce config-based allocation for XDP
An earlier patch series[1] introduced RX/TX ring allocation configuration
structs which contained metadata used to allocate and configure new RX
and TX rings. This led to a much cleaner and safer allocation pattern
wherein queue resources were not deallocated until new queue resources
were successfully allocated.
Migrate the XDP allocation path to use the same pattern to allow for the
existence of a single allocation path instead of relying on XDP-specific
allocation methods. These extra allocation methods result in the
duplication of many existing behaviors while being prone to error when
configuration changes unrelated to XDP occur.
Link: https://lore.kernel.org/netdev/[email protected]/ [1]
Reviewed-by: Praveen Kaligineedi <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Signed-off-by: Joshua Washington <[email protected]>
Signed-off-by: Harshitha Ramamurthy <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent c2b9009 commit 542a58f
File tree
7 files changed
+118
-294
lines changed- drivers/net/ethernet/google/gve
7 files changed
+118
-294
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
634 | | - | |
635 | | - | |
| 634 | + | |
| 635 | + | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
638 | 645 | | |
639 | 646 | | |
640 | 647 | | |
| |||
658 | 665 | | |
659 | 666 | | |
660 | 667 | | |
661 | | - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
662 | 671 | | |
663 | 672 | | |
664 | | - | |
665 | | - | |
666 | 673 | | |
667 | 674 | | |
668 | 675 | | |
| |||
672 | 679 | | |
673 | 680 | | |
674 | 681 | | |
675 | | - | |
676 | | - | |
| 682 | + | |
| 683 | + | |
677 | 684 | | |
678 | 685 | | |
679 | 686 | | |
| |||
764 | 771 | | |
765 | 772 | | |
766 | 773 | | |
767 | | - | |
768 | | - | |
769 | | - | |
| 774 | + | |
| 775 | + | |
770 | 776 | | |
771 | 777 | | |
772 | 778 | | |
| |||
1039 | 1045 | | |
1040 | 1046 | | |
1041 | 1047 | | |
1042 | | - | |
1043 | | - | |
| 1048 | + | |
1044 | 1049 | | |
1045 | 1050 | | |
1046 | 1051 | | |
1047 | 1052 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
| 1053 | + | |
1059 | 1054 | | |
1060 | 1055 | | |
1061 | 1056 | | |
1062 | | - | |
| 1057 | + | |
1063 | 1058 | | |
1064 | 1059 | | |
1065 | 1060 | | |
| |||
1077 | 1072 | | |
1078 | 1073 | | |
1079 | 1074 | | |
1080 | | - | |
| 1075 | + | |
| 1076 | + | |
1081 | 1077 | | |
1082 | 1078 | | |
1083 | 1079 | | |
| |||
1087 | 1083 | | |
1088 | 1084 | | |
1089 | 1085 | | |
1090 | | - | |
| 1086 | + | |
1091 | 1087 | | |
1092 | 1088 | | |
1093 | 1089 | | |
| |||
1118 | 1114 | | |
1119 | 1115 | | |
1120 | 1116 | | |
1121 | | - | |
| 1117 | + | |
1122 | 1118 | | |
1123 | 1119 | | |
1124 | 1120 | | |
| |||
1234 | 1230 | | |
1235 | 1231 | | |
1236 | 1232 | | |
1237 | | - | |
1238 | | - | |
| 1233 | + | |
| 1234 | + | |
1239 | 1235 | | |
1240 | 1236 | | |
1241 | 1237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
479 | | - | |
| 478 | + | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
498 | 505 | | |
499 | 506 | | |
500 | 507 | | |
| |||
0 commit comments