ksz9477.c (e18058ea99860321851f7e76b8de4a7a4b06f5ed) | ksz9477.c (0148bb50b8fd51baf357de8b237c0c6011506540) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Microchip KSZ9477 switch driver main logic 4 * 5 * Copyright (C) 2017-2019 Microchip Technology Inc. 6 */ 7 8#include <linux/kernel.h> --- 1004 unchanged lines hidden (view full) --- 1013exit: 1014 mutex_unlock(&dev->alu_mutex); 1015 1016 return ret; 1017} 1018 1019static int ksz9477_port_mirror_add(struct dsa_switch *ds, int port, 1020 struct dsa_mall_mirror_tc_entry *mirror, | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Microchip KSZ9477 switch driver main logic 4 * 5 * Copyright (C) 2017-2019 Microchip Technology Inc. 6 */ 7 8#include <linux/kernel.h> --- 1004 unchanged lines hidden (view full) --- 1013exit: 1014 mutex_unlock(&dev->alu_mutex); 1015 1016 return ret; 1017} 1018 1019static int ksz9477_port_mirror_add(struct dsa_switch *ds, int port, 1020 struct dsa_mall_mirror_tc_entry *mirror, |
1021 bool ingress) | 1021 bool ingress, struct netlink_ext_ack *extack) |
1022{ 1023 struct ksz_device *dev = ds->priv; 1024 1025 if (ingress) 1026 ksz_port_cfg(dev, port, P_MIRROR_CTRL, PORT_MIRROR_RX, true); 1027 else 1028 ksz_port_cfg(dev, port, P_MIRROR_CTRL, PORT_MIRROR_TX, true); 1029 --- 697 unchanged lines hidden --- | 1022{ 1023 struct ksz_device *dev = ds->priv; 1024 1025 if (ingress) 1026 ksz_port_cfg(dev, port, P_MIRROR_CTRL, PORT_MIRROR_RX, true); 1027 else 1028 ksz_port_cfg(dev, port, P_MIRROR_CTRL, PORT_MIRROR_TX, true); 1029 --- 697 unchanged lines hidden --- |