switchdev – no more sdk© 2016 mellanox technologies 5 switchdev is here to stay what?...

22
Elad Raz, Jiri Pirko Netdev 1.1 | 2016 Switchdev – No More SDK Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Upload: others

Post on 25-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

Elad Raz, Jiri PirkoNetdev 1.1 | 2016

Switchdev – No More SDK

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 2: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 2

Switchdev is here to stay

§What?

§Why?

§Where? 100G DEMO!

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 3: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 3

Switchdev is here to stay

§What?

§Why?

§Where?

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 4: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 4

Switchdev is here to stay

§What?

64 net-devicesDoing skb rx/tx, ethtool, port state and ndo offload

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 5: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 5

Switchdev is here to stay

§What?

switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP…

Routing – FIB offloadand more

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 6: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 6

Switchdev is here to stay

§What?

In-kernel implementationNO MORE SDK!

drivers/net/ethernet/mellanox/mlxsw

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 7: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 7

Switchdev is here to stay

§What?

§Why?

§Where?

pen

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 8: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 8

Switchdev is here to stay

§Why?

Community basedOpen-source

Standard behaviorStandard API

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 9: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 9

Switchdev is here to stay

§What?

§Why?

§Where?

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 10: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 10

Switchdev is here to stay

§Where?

Devlinkset port type, port splitter, shared buffers, etc.

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 11: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 11

Switchdev is here to stay

§Where?

QoSDCBNL interface implementation

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 12: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 12

Switchdev is here to stay

§Where?

L3 offloadfix the current switchdev model, include VRF support

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 13: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 13

Switchdev is here to stay

§Where?

Flowstc cls_flower + selected acts offload

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 14: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 14

Switchdev is here to stay

§Where?

(e)BPF?

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 15: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 15

Tutorial outlook

§No more talking! 100G demo!

• Netdevice

• Bridging

• 802.1Q bridge

• 802.1D bridge

• LAG

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 16: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 16

Topology

SN2700R-mgtswd-101110.209.0.60

dev-r-vrt-157 dev-r-vrt-158

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 17: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 17

ScreensProceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 18: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 18

netdev

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 19: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 19

.1Q bridge

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 20: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 20

.1D bridge

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 21: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

© 2016 Mellanox Technologies 21

team and bond

LAG

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)

Page 22: Switchdev – No More SDK© 2016 Mellanox Technologies 5 Switchdev is here to stay What? switchdev_ops.1D/.1Q Bridging – VLANs, PVID, FDB, IGMP… Routing – FIB offload and more

Thank You

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain)