Commit c3bdbae
net/mlx5: Store page counters in a single array
Currently, an independent page counter is used for tracking memory usage
for each function type such as VF, PF and host PF (DPU).
For better code-readibilty, use a single array that stores
the number of allocated memory pages for each function type.
Signed-off-by: Maher Sanalla <[email protected]>
Reviewed-by: Shay Drory <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>1 parent 8aa5f17 commit c3bdbae
File tree
5 files changed
+34
-23
lines changed- drivers/net/ethernet/mellanox/mlx5/core
- include/linux/mlx5
5 files changed
+34
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
| 248 | + | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| |||
332 | 340 | | |
333 | 341 | | |
334 | 342 | | |
| 343 | + | |
335 | 344 | | |
336 | 345 | | |
337 | 346 | | |
| |||
383 | 392 | | |
384 | 393 | | |
385 | 394 | | |
| 395 | + | |
| 396 | + | |
386 | 397 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | 398 | | |
392 | 399 | | |
393 | 400 | | |
| |||
414 | 421 | | |
415 | 422 | | |
416 | 423 | | |
| 424 | + | |
417 | 425 | | |
418 | 426 | | |
419 | 427 | | |
| |||
428 | 436 | | |
429 | 437 | | |
430 | 438 | | |
| 439 | + | |
| 440 | + | |
431 | 441 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | 442 | | |
437 | 443 | | |
438 | 444 | | |
| |||
498 | 504 | | |
499 | 505 | | |
500 | 506 | | |
| 507 | + | |
501 | 508 | | |
502 | 509 | | |
503 | 510 | | |
| |||
549 | 556 | | |
550 | 557 | | |
551 | 558 | | |
| 559 | + | |
| 560 | + | |
552 | 561 | | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | 562 | | |
558 | 563 | | |
559 | 564 | | |
| |||
706 | 711 | | |
707 | 712 | | |
708 | 713 | | |
709 | | - | |
| 714 | + | |
710 | 715 | | |
711 | | - | |
712 | | - | |
| 716 | + | |
| 717 | + | |
713 | 718 | | |
714 | | - | |
| 719 | + | |
715 | 720 | | |
716 | 721 | | |
717 | 722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
576 | 583 | | |
577 | 584 | | |
578 | 585 | | |
| |||
583 | 590 | | |
584 | 591 | | |
585 | 592 | | |
586 | | - | |
587 | 593 | | |
588 | 594 | | |
589 | | - | |
590 | | - | |
| 595 | + | |
| 596 | + | |
591 | 597 | | |
592 | 598 | | |
593 | 599 | | |
| |||
0 commit comments