Commit 98e81b0
net/mlx5e: Remove the mlx5e_update_priv_params() function
It was used to update netdev priv parameters that require stopping
and re-opening the device in a generic way - it got the new
parameters and did: ndo_stop(), copy new parameters into current
parameters, ndo_open().
We chose to remove it for two reasons:
1) It requires additional instance of struct mlx5e_params on the
stack and looking forward we expect this struct to grow.
2) Sometimes we want to do additional operations (besides
just updating the priv parameters) while the netdev is stopped.
For example, updating netdev->mtu @mlx5e_change_mtu() should
be done while the netdev is stopped (done in this commit).
Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 1fc2273 commit 98e81b0
File tree
3 files changed
+60
-50
lines changed- drivers/net/ethernet/mellanox/mlx5/core
3 files changed
+60
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
500 | | - | |
501 | 499 | | |
502 | 500 | | |
503 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
324 | 331 | | |
325 | 332 | | |
326 | 333 | | |
| |||
342 | 349 | | |
343 | 350 | | |
344 | 351 | | |
345 | | - | |
| 352 | + | |
346 | 353 | | |
347 | 354 | | |
348 | 355 | | |
| |||
365 | 372 | | |
366 | 373 | | |
367 | 374 | | |
368 | | - | |
369 | | - | |
370 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
371 | 385 | | |
372 | 386 | | |
373 | 387 | | |
| |||
673 | 687 | | |
674 | 688 | | |
675 | 689 | | |
676 | | - | |
| 690 | + | |
677 | 691 | | |
678 | 692 | | |
679 | | - | |
| 693 | + | |
680 | 694 | | |
681 | 695 | | |
682 | 696 | | |
| |||
690 | 704 | | |
691 | 705 | | |
692 | 706 | | |
693 | | - | |
694 | | - | |
| 707 | + | |
| 708 | + | |
695 | 709 | | |
696 | 710 | | |
697 | 711 | | |
| |||
724 | 738 | | |
725 | 739 | | |
726 | 740 | | |
727 | | - | |
| 741 | + | |
728 | 742 | | |
729 | 743 | | |
730 | 744 | | |
| |||
737 | 751 | | |
738 | 752 | | |
739 | 753 | | |
740 | | - | |
741 | | - | |
742 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
743 | 764 | | |
744 | 765 | | |
745 | 766 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1570 | 1570 | | |
1571 | 1571 | | |
1572 | 1572 | | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
1593 | 1573 | | |
1594 | 1574 | | |
1595 | 1575 | | |
| |||
1639 | 1619 | | |
1640 | 1620 | | |
1641 | 1621 | | |
| 1622 | + | |
1642 | 1623 | | |
1643 | | - | |
1644 | | - | |
1645 | 1624 | | |
1646 | 1625 | | |
1647 | | - | |
1648 | 1626 | | |
1649 | 1627 | | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
1653 | 1632 | | |
1654 | | - | |
1655 | | - | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
1656 | 1638 | | |
1657 | 1639 | | |
1658 | 1640 | | |
| |||
1670 | 1652 | | |
1671 | 1653 | | |
1672 | 1654 | | |
| 1655 | + | |
1673 | 1656 | | |
1674 | | - | |
| 1657 | + | |
1675 | 1658 | | |
1676 | 1659 | | |
1677 | 1660 | | |
| |||
1683 | 1666 | | |
1684 | 1667 | | |
1685 | 1668 | | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
1686 | 1674 | | |
1687 | | - | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
1688 | 1679 | | |
1689 | 1680 | | |
1690 | 1681 | | |
| |||
0 commit comments