Commit 803bef8
ice: factor out ice_ptp_rebuild_owner()
The ice_ptp_reset() function uses a goto to skip past clock owner
operations if performing a PF reset or if the device is not the clock
owner. This is a bit confusing. Factor this out into
ice_ptp_rebuild_owner() instead.
The ice_ptp_reset() function is called by ice_rebuild() to restore PTP
functionality after a device reset. Follow the convention set by the
ice_main.c file and rename this function to ice_ptp_rebuild(), in the
same way that we have ice_prepare_for_reset() and
ice_ptp_prepare_for_reset().
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 1abefdc commit 803bef8
File tree
3 files changed
+42
-28
lines changed- drivers/net/ethernet/intel/ice
3 files changed
+42
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7548 | 7548 | | |
7549 | 7549 | | |
7550 | 7550 | | |
7551 | | - | |
| 7551 | + | |
7552 | 7552 | | |
7553 | 7553 | | |
7554 | 7554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2665 | 2665 | | |
2666 | 2666 | | |
2667 | 2667 | | |
2668 | | - | |
| 2668 | + | |
2669 | 2669 | | |
2670 | | - | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
2671 | 2673 | | |
2672 | | - | |
| 2674 | + | |
2673 | 2675 | | |
2674 | 2676 | | |
2675 | 2677 | | |
2676 | 2678 | | |
2677 | 2679 | | |
2678 | 2680 | | |
2679 | 2681 | | |
2680 | | - | |
2681 | | - | |
2682 | | - | |
2683 | | - | |
2684 | | - | |
2685 | | - | |
2686 | | - | |
2687 | | - | |
2688 | | - | |
2689 | | - | |
2690 | | - | |
2691 | 2682 | | |
2692 | 2683 | | |
2693 | | - | |
| 2684 | + | |
2694 | 2685 | | |
2695 | 2686 | | |
2696 | 2687 | | |
2697 | 2688 | | |
2698 | | - | |
| 2689 | + | |
2699 | 2690 | | |
2700 | 2691 | | |
2701 | 2692 | | |
2702 | 2693 | | |
2703 | 2694 | | |
2704 | 2695 | | |
2705 | | - | |
| 2696 | + | |
2706 | 2697 | | |
2707 | 2698 | | |
2708 | 2699 | | |
| |||
2718 | 2709 | | |
2719 | 2710 | | |
2720 | 2711 | | |
2721 | | - | |
| 2712 | + | |
2722 | 2713 | | |
2723 | 2714 | | |
2724 | 2715 | | |
| |||
2727 | 2718 | | |
2728 | 2719 | | |
2729 | 2720 | | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
2730 | 2750 | | |
2731 | 2751 | | |
2732 | 2752 | | |
2733 | 2753 | | |
2734 | | - | |
2735 | 2754 | | |
2736 | 2755 | | |
2737 | 2756 | | |
| |||
2746 | 2765 | | |
2747 | 2766 | | |
2748 | 2767 | | |
2749 | | - | |
2750 | | - | |
2751 | | - | |
2752 | | - | |
2753 | | - | |
2754 | 2768 | | |
2755 | 2769 | | |
2756 | 2770 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
| 361 | + | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
0 commit comments