Wouldn't it make more sense, to fix the regression via net (and
a Fixes: tag) and then make that stuff work without tc? Maybe
the fix is just reverting the commits.
I have discussed this again with Horatiu and I have the following suggestion of
how to proceed:
1) Create a small LAN966x specific patch for net (see below for the two possible
variants).
2) Continue with a net-next V3 without any 'Fixes' tags on top of the patch in
(1) when it becomes available in net-next.
The LAN966x patch for net (with a Fixes tag) could contain either:
a) No check on enabled lookup
Removal of the check for enabled lookups:
- if (!ANA_VCAP_S2_CFG_ENA_GET(val))
- return -ENOENT;
This will remove the error that you have seen, but will still require a
matchall rule to enable the PTP rules. This is compatible with the TC
framework.
b) Always enable lookups
Enable the lookups at startup.
Remove the lookup enable check as above.
This will make the PTP rules (and any other rules) work even without the
matchall rule to enable them. It its not ideal, but solves the problem that
you have been experiencing without the 'TC magic'
The V3 in net-next will provide the full solution.
I expect that you might prefer the b) version.