slave.c (399ba77a94e1ee01f747b168c429a121164ac962) | slave.c (951259aa60180e2897d28b538bf68a3a213da471) |
---|---|
1/* 2 * net/dsa/slave.c - Slave device handling 3 * Copyright (c) 2008-2009 Marvell Semiconductor 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 1128 unchanged lines hidden (view full) --- 1137 .port_number = dp->index, 1138 .master = master, 1139 .info.dev = dev, 1140 }; 1141 1142 call_dsa_notifiers(val, dev, &rinfo.info); 1143} 1144 | 1/* 2 * net/dsa/slave.c - Slave device handling 3 * Copyright (c) 2008-2009 Marvell Semiconductor 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 1128 unchanged lines hidden (view full) --- 1137 .port_number = dp->index, 1138 .master = master, 1139 .info.dev = dev, 1140 }; 1141 1142 call_dsa_notifiers(val, dev, &rinfo.info); 1143} 1144 |
1145int dsa_slave_create(struct dsa_port *port, const char *name) | 1145int dsa_slave_create(struct dsa_port *port) |
1146{ 1147 struct dsa_port *cpu_dp = port->cpu_dp; 1148 struct net_device *master = cpu_dp->master; 1149 struct dsa_switch *ds = port->ds; | 1146{ 1147 struct dsa_port *cpu_dp = port->cpu_dp; 1148 struct net_device *master = cpu_dp->master; 1149 struct dsa_switch *ds = port->ds; |
1150 const char *name = port->name; |
|
1150 struct net_device *slave_dev; 1151 struct dsa_slave_priv *p; 1152 int ret; 1153 1154 if (!ds->num_tx_queues) 1155 ds->num_tx_queues = 1; 1156 1157 slave_dev = alloc_netdev_mqs(sizeof(struct dsa_slave_priv), name, --- 266 unchanged lines hidden --- | 1151 struct net_device *slave_dev; 1152 struct dsa_slave_priv *p; 1153 int ret; 1154 1155 if (!ds->num_tx_queues) 1156 ds->num_tx_queues = 1; 1157 1158 slave_dev = alloc_netdev_mqs(sizeof(struct dsa_slave_priv), name, --- 266 unchanged lines hidden --- |