11b0a277 | 04-Jan-2022 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: Add PGID_GP_START and PGID_GP_END
The first entries in the PGID table are used by the front ports while the last entries are used for different purposes like flooding mask, copy to CPU
net: lan966x: Add PGID_GP_START and PGID_GP_END
The first entries in the PGID table are used by the front ports while the last entries are used for different purposes like flooding mask, copy to CPU, etc. So add these macros to define which entries can be used for general purpose.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
811ba277 | 18-Dec-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: Extend switchdev with fdb support
Extend lan966x driver with fdb support by implementing the switchdev calls SWITCHDEV_FDB_ADD_TO_DEVICE and SWITCHDEV_FDB_DEL_TO_DEVICE.
Signed-off-by
net: lan966x: Extend switchdev with fdb support
Extend lan966x driver with fdb support by implementing the switchdev calls SWITCHDEV_FDB_ADD_TO_DEVICE and SWITCHDEV_FDB_DEL_TO_DEVICE.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
e14f7239 | 18-Dec-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: Extend switchdev bridge flags
Currently allow a port to be part or not of the multicast flooding mask. By implementing the switchdev calls SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS and SWITC
net: lan966x: Extend switchdev bridge flags
Currently allow a port to be part or not of the multicast flooding mask. By implementing the switchdev calls SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS and SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
6d2c186a | 18-Dec-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: Add vlan support.
Extend the driver to support vlan filtering by implementing the switchdev calls SWITCHDEV_OBJ_ID_PORT_VLAN, SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING
Signed-off-by: H
net: lan966x: Add vlan support.
Extend the driver to support vlan filtering by implementing the switchdev calls SWITCHDEV_OBJ_ID_PORT_VLAN, SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
cf2f6089 | 18-Dec-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: Add support to offload the forwarding.
This patch adds basic support to offload in the HW the forwarding of the frames. The driver registers to the switchdev callbacks and implements t
net: lan966x: Add support to offload the forwarding.
This patch adds basic support to offload in the HW the forwarding of the frames. The driver registers to the switchdev callbacks and implements the callbacks for attributes SWITCHDEV_ATTR_ID_PORT_STP_STATE and SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME. It is not allowed to add a lan966x port to a bridge that contains a different interface than lan966x.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
571bb516 | 18-Dec-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: Remove .ndo_change_rx_flags
The function lan966x_port_change_rx_flags() was used only when IFF_PROMISC flag was set. In that case it was setting to copy all the frames to the CPU inste
net: lan966x: Remove .ndo_change_rx_flags
The function lan966x_port_change_rx_flags() was used only when IFF_PROMISC flag was set. In that case it was setting to copy all the frames to the CPU instead of removing any RX filters. Therefore remove it.
Fixes: d28d6d2e37d10d ("net: lan966x: add port module support") Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
25ee9561 | 18-Dec-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: More MAC table functionality
This patch adds support for adding/removing mac entries in the SW list of entries and in the HW table. This is used by the bridge functionality.
Signed-of
net: lan966x: More MAC table functionality
This patch adds support for adding/removing mac entries in the SW list of entries and in the HW table. This is used by the bridge functionality.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
5ccd66e0 | 18-Dec-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: add support for interrupts from analyzer
This patch adds support for handling the interrupts generated by the analyzer. Currently, only the MAC table generates these interrupts. The MA
net: lan966x: add support for interrupts from analyzer
This patch adds support for handling the interrupts generated by the analyzer. Currently, only the MAC table generates these interrupts. The MAC table will generate an interrupt whenever it learns or forgets an entry in the table. It is the SW responsibility figure out which entries were added/removed.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
cc9cf69e | 02-Dec-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: Fix builds for lan966x driver
The lan966x is using the function 'packing' to create/extract the information for the IFH, that is used to be added in front of the frames when they are i
net: lan966x: Fix builds for lan966x driver
The lan966x is using the function 'packing' to create/extract the information for the IFH, that is used to be added in front of the frames when they are injected/extracted. Therefore update the Kconfig to select config option 'PACKING' whenever lan966x driver is enabled.
Fixes: db8bcaad539314 ("net: lan966x: add the basic lan966x driver") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
12c2d0a5 | 29-Nov-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: add ethtool configuration and statistics
This patch adds support for statistics counters for the network interfaces. Also adds support for configuring the network interface via ethtool
net: lan966x: add ethtool configuration and statistics
This patch adds support for statistics counters for the network interfaces. Also adds support for configuring the network interface via ethtool like: speed, duplex etc.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
e18aba89 | 29-Nov-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: add mactable support
This patch adds support for MAC table operations like add and forget. Also add the functionality to read the MAC address from DT, if there is no MAC set in DT it w
net: lan966x: add mactable support
This patch adds support for MAC table operations like add and forget. Also add the functionality to read the MAC address from DT, if there is no MAC set in DT it would use a random one.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
d28d6d2e | 29-Nov-2021 |
Horatiu Vultur <horatiu.vultur@microchip.com> |
net: lan966x: add port module support
This patch adds support for netdev and phylink in the switch. The injection + extraction is register based. This will be replaced with DMA accees.
Signed-off-b
net: lan966x: add port module support
This patch adds support for netdev and phylink in the switch. The injection + extraction is register based. This will be replaced with DMA accees.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|