Commit b8768dc
net: ethtool: Refactor identical get_ts_info implementations.
The vlan, macvlan and the bonding drivers call their "real" device driver
in order to report the time stamping capabilities. Provide a core
ethtool helper function to avoid copy/paste in the stack.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 430dc32 commit b8768dc
File tree
5 files changed
+18
-54
lines changed- drivers/net
- bonding
- include/linux
- net
- 8021q
- ethtool
5 files changed
+18
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5755 | 5755 | | |
5756 | 5756 | | |
5757 | 5757 | | |
5758 | | - | |
5759 | 5758 | | |
5760 | 5759 | | |
5761 | | - | |
5762 | 5760 | | |
5763 | 5761 | | |
5764 | 5762 | | |
| |||
5769 | 5767 | | |
5770 | 5768 | | |
5771 | 5769 | | |
5772 | | - | |
5773 | | - | |
5774 | | - | |
5775 | | - | |
5776 | | - | |
5777 | | - | |
5778 | | - | |
5779 | | - | |
5780 | | - | |
5781 | | - | |
| 5770 | + | |
5782 | 5771 | | |
5783 | 5772 | | |
5784 | 5773 | | |
5785 | 5774 | | |
5786 | | - | |
5787 | | - | |
5788 | | - | |
5789 | | - | |
5790 | | - | |
5791 | | - | |
5792 | | - | |
5793 | | - | |
5794 | | - | |
| 5775 | + | |
5795 | 5776 | | |
5796 | 5777 | | |
5797 | 5778 | | |
| |||
5803 | 5784 | | |
5804 | 5785 | | |
5805 | 5786 | | |
5806 | | - | |
5807 | | - | |
5808 | | - | |
5809 | 5787 | | |
5810 | 5788 | | |
5811 | 5789 | | |
5812 | | - | |
5813 | | - | |
5814 | | - | |
5815 | 5790 | | |
5816 | 5791 | | |
5817 | 5792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
1089 | | - | |
1090 | | - | |
1091 | 1089 | | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
| 1090 | + | |
1103 | 1091 | | |
1104 | 1092 | | |
1105 | 1093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1046 | 1054 | | |
1047 | 1055 | | |
1048 | 1056 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
| 705 | + | |
719 | 706 | | |
720 | 707 | | |
721 | 708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
664 | 670 | | |
665 | 671 | | |
666 | 672 | | |
| |||
0 commit comments