On 2017-11-09 15:24, Andrew Lunn wrote:
Although it could be a good thing to bring this to mainline, I'm kind
of
pessimistic about supporting such switches in DSA/switchdev. IMO
swconfig
does a better job for now.
I think the important point here is "... for now"
... as always, probably
Unless switchdev could be expanded to support other functions beyond
VLAN,
like port rate control, ACL, HW NAT (no switchdev L3 offload doesn't
fit
this), etc.
Switchdev allows offloading of TC. So port rate control would be
implemented via TC.
That's interesting. Are there any examples implemented?
By ACL do you mean filtering MAC addresses?
Not only. Usually ACL means defining action with rules matching MAC/IP
address, physical or TCP/IP port, VID, Ethertype or even custom bytes.
And actions could be drop, assign rate, change VID/priority, force L3
offload or mirroring, redirect/copy to CPU port.
iptables? The Broadcom SF2 allows some access to its TCAM using
standard methods. More will come with time.
That's OK, if it's doable with current design.
Offload of iptables is in
the works. Pablo posted some patches this month laying the foundations
of HW NAT.
Yes, that what I referred to in my previous email.
But the question how exactly it will be done?
Will the switch support be spread all over the kernel?
Or switchdev will provide API for all the others?
Regards,
Roman