Commit ee24284
gve: Alloc and free QPLs with the rings
Every tx and rx ring has its own queue-page-list (QPL) that serves as
the bounce buffer. Previously we were allocating QPLs for all queues
before the queues themselves were allocated and later associating a QPL
with a queue. This is avoidable complexity: it is much more natural for
each queue to allocate and free its own QPL.
Moreover, the advent of new queue-manipulating ndo hooks make it hard to
keep things as is: we would need to transfer a QPL from an old queue to
a new queue, and that is unpleasant.
Tested-by: Mina Almasry <almasrymina@google.com>
Reviewed-by: Praveen Kaligineedi <pkaligineedi@google.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Signed-off-by: Shailend Chand <shailend@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent af9bcf9 commit ee24284
7 files changed
Lines changed: 171 additions & 331 deletions
File tree
- drivers/net/ethernet/google/gve
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | 641 | | |
655 | 642 | | |
656 | 643 | | |
657 | 644 | | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | 645 | | |
662 | 646 | | |
663 | 647 | | |
| |||
673 | 657 | | |
674 | 658 | | |
675 | 659 | | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | 660 | | |
680 | 661 | | |
681 | 662 | | |
| |||
701 | 682 | | |
702 | 683 | | |
703 | 684 | | |
704 | | - | |
705 | 685 | | |
706 | 686 | | |
707 | 687 | | |
| |||
1025 | 1005 | | |
1026 | 1006 | | |
1027 | 1007 | | |
1028 | | - | |
1029 | 1008 | | |
1030 | 1009 | | |
1031 | 1010 | | |
| |||
1036 | 1015 | | |
1037 | 1016 | | |
1038 | 1017 | | |
1039 | | - | |
1040 | 1018 | | |
1041 | 1019 | | |
1042 | 1020 | | |
| |||
1090 | 1068 | | |
1091 | 1069 | | |
1092 | 1070 | | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1093 | 1077 | | |
1094 | 1078 | | |
1095 | 1079 | | |
| |||
1126 | 1110 | | |
1127 | 1111 | | |
1128 | 1112 | | |
1129 | | - | |
1130 | 1113 | | |
1131 | 1114 | | |
1132 | 1115 | | |
1133 | | - | |
1134 | 1116 | | |
1135 | 1117 | | |
1136 | 1118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
542 | 541 | | |
543 | 542 | | |
544 | 543 | | |
545 | | - | |
546 | | - | |
| 544 | + | |
547 | 545 | | |
548 | 546 | | |
549 | 547 | | |
550 | 548 | | |
551 | 549 | | |
552 | 550 | | |
553 | | - | |
554 | | - | |
| 551 | + | |
555 | 552 | | |
556 | 553 | | |
557 | 554 | | |
| |||
0 commit comments