ptp: Add generic helper functions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest9 patches 6 repliesIn review
- v39 patches 34 repliesSuperseded
- v29 patches 13 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 7 replies | Superseded |
Changes since v2 from the cover letter
* Make ptp_parse_header() work in all scenarios (Russell King)
* Fix msgtype offset for ptp v1 packets
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | ptp: Add generic ptp v2 header parsing functioninclude/ net/ | +74 | 1 reply | |
| 2/9 | ptp: Add generic ptp message type functioninclude/ | +25 | 2 replies | |
| 3/9 | net: dsa: mv88e6xxx: Use generic helper functiondrivers/ | +13 | 2 replies | |
| 4/9 | mlxsw: spectrum_ptp: Use generic helper functiondrivers/ | +7 | 0 replies | |
| 5/9 | ethernet: ti: am65-cpts: Use generic helper functiondrivers/ | +9 | 0 replies | |
| 6/9 | ethernet: ti: cpts: Use generic helper functiondrivers/ | +14 | 0 replies | |
| 7/9 | net: phy: dp83640: Use generic helper functiondrivers/ | +16 | 0 replies | |
| 8/9 | ptp: ptp_ines: Use generic helper functiondrivers/ | +25 | 0 replies | |
| 9/9 | ptp: Remove unused macroinclude/ | +0 | 0 replies |
Reviews trailers per patch
7 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Richard Cochran | Florian Fainelli | Petr Machata | Russell King |
|---|---|---|---|---|
| 1/9 | R-b | R-b | R-b | |
| 2/9 | R-b | R-b | ||
| 3/9 | T-b | R-b | ||
| 4/9 | R-b | Reviewed-and-tested-by | ||
| 5/9 | ||||
| 6/9 | ||||
| 7/9 | T-b | R-b | ||
| 8/9 | R-b | |||
| 9/9 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v4 0/9] ptp: Add generic helper functions
Hi!
in order to reduce code duplication (and cut'n'paste errors) in the ptp code of DSA, Ethernet and Phy drivers, create helper functions and move them to ptp_classify. This way all drivers can share the same implementation.
This is version four and contains bugfixes. Implemented as discussed [1] [2]
[3] [4].
Previous versions can be found here:
* https://lkml.kernel.org/netdev/[email protected]/
* https://lkml.kernel.org/netdev/[email protected]/
* https://lkml.kernel.org/netdev/[email protected]/
Thanks,
Kurt
Changes sinve v3:
* Coding style issues (Richard Cochran, Petr Machata)
* Add better documentation (Grygorii Strashko)
* Fix cpts code (Grygorii Strashko)
* Use ntohs() for TI code (Grygorii Strashko)
* Add tags
Changes since v2:
* Make ptp_parse_header() work in all scenarios (Russell King)
* Fix msgtype offset for ptp v1 packets
Changes since v1:
* Fix Kconfig (Richard Cochran)
* Include more drivers (Richard Cochran)
[1] - https://lkml.kernel.org/netdev/20200713140112.GB27934@hoboy/
[2] - https://lkml.kernel.org/netdev/20200720142146.GB16001@hoboy/
[3] - https://lkml.kernel.org/netdev/[email protected]/
[4] - https://lkml.kernel.org/netdev/[email protected]/
Kurt Kanzenbach (9):
ptp: Add generic ptp v2 header parsing function
ptp: Add generic ptp message type function
net: dsa: mv88e6xxx: Use generic helper function
mlxsw: spectrum_ptp: Use generic helper function
ethernet: ti: am65-cpts: Use generic helper function
ethernet: ti: cpts: Use generic helper function
net: phy: dp83640: Use generic helper function
ptp: ptp_ines: Use generic helper function
ptp: Remove unused macro
drivers/net/dsa/mv88e6xxx/hwtstamp.c | 59 +++---------- .../ethernet/mellanox/mlxsw/spectrum_ptp.c | 32 ++----- drivers/net/ethernet/ti/am65-cpts.c | 37 ++------ drivers/net/ethernet/ti/cpts.c | 42 +++------ drivers/net/phy/dp83640.c | 70 ++++----------- drivers/ptp/ptp_ines.c | 88 ++++++------------- include/linux/ptp_classify.h | 70 ++++++++++++++- net/core/ptp_classifier.c | 30 +++++++ 8 files changed, 183 insertions(+), 245 deletions(-)
Signature · 1 line
2.20.1