aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2015-09-24 04:02:40 -0400
committerDavid S. Miller <davem@davemloft.net>2015-09-25 01:59:21 -0400
commit69f5df491e0becb75d2d795add7481a35218d657 (patch)
tree3ed228b4acf8401be9203be33cc2448152d9267c /net/switchdev
parentaee2f545f0a12399cc6bbe134d69b8994582b694 (diff)
switchdev: rename "trans" to "trans_ph".
This is temporary, name "trans" will be used for something else and "trans_ph" will eventually disappear. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev')
-rw-r--r--net/switchdev/switchdev.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index fda38f830a10..df5a5446ff4c 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -163,7 +163,7 @@ int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr)
163 * but should not commit the attr. 163 * but should not commit the attr.
164 */ 164 */
165 165
166 attr->trans = SWITCHDEV_TRANS_PREPARE; 166 attr->trans_ph = SWITCHDEV_TRANS_PREPARE;
167 err = __switchdev_port_attr_set(dev, attr); 167 err = __switchdev_port_attr_set(dev, attr);
168 if (err) { 168 if (err) {
169 /* Prepare phase failed: abort the transaction. Any 169 /* Prepare phase failed: abort the transaction. Any
@@ -172,7 +172,7 @@ int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr)
172 */ 172 */
173 173
174 if (err != -EOPNOTSUPP) { 174 if (err != -EOPNOTSUPP) {
175 attr->trans = SWITCHDEV_TRANS_ABORT; 175 attr->trans_ph = SWITCHDEV_TRANS_ABORT;
176 __switchdev_port_attr_set(dev, attr); 176 __switchdev_port_attr_set(dev, attr);
177 } 177 }
178 178
@@ -184,7 +184,7 @@ int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr)
184 * because the driver said everythings was OK in phase I. 184 * because the driver said everythings was OK in phase I.
185 */ 185 */
186 186
187 attr->trans = SWITCHDEV_TRANS_COMMIT; 187 attr->trans_ph = SWITCHDEV_TRANS_COMMIT;
188 err = __switchdev_port_attr_set(dev, attr); 188 err = __switchdev_port_attr_set(dev, attr);
189 WARN(err, "%s: Commit of attribute (id=%d) failed.\n", 189 WARN(err, "%s: Commit of attribute (id=%d) failed.\n",
190 dev->name, attr->id); 190 dev->name, attr->id);
@@ -243,7 +243,7 @@ int switchdev_port_obj_add(struct net_device *dev, struct switchdev_obj *obj)
243 * but should not commit the obj. 243 * but should not commit the obj.
244 */ 244 */
245 245
246 obj->trans = SWITCHDEV_TRANS_PREPARE; 246 obj->trans_ph = SWITCHDEV_TRANS_PREPARE;
247 err = __switchdev_port_obj_add(dev, obj); 247 err = __switchdev_port_obj_add(dev, obj);
248 if (err) { 248 if (err) {
249 /* Prepare phase failed: abort the transaction. Any 249 /* Prepare phase failed: abort the transaction. Any
@@ -252,7 +252,7 @@ int switchdev_port_obj_add(struct net_device *dev, struct switchdev_obj *obj)
252 */ 252 */
253 253
254 if (err != -EOPNOTSUPP) { 254 if (err != -EOPNOTSUPP) {
255 obj->trans = SWITCHDEV_TRANS_ABORT; 255 obj->trans_ph = SWITCHDEV_TRANS_ABORT;
256 __switchdev_port_obj_add(dev, obj); 256 __switchdev_port_obj_add(dev, obj);
257 } 257 }
258 258
@@ -264,7 +264,7 @@ int switchdev_port_obj_add(struct net_device *dev, struct switchdev_obj *obj)
264 * because the driver said everythings was OK in phase I. 264 * because the driver said everythings was OK in phase I.
265 */ 265 */
266 266
267 obj->trans = SWITCHDEV_TRANS_COMMIT; 267 obj->trans_ph = SWITCHDEV_TRANS_COMMIT;
268 err = __switchdev_port_obj_add(dev, obj); 268 err = __switchdev_port_obj_add(dev, obj);
269 WARN(err, "%s: Commit of object (id=%d) failed.\n", dev->name, obj->id); 269 WARN(err, "%s: Commit of object (id=%d) failed.\n", dev->name, obj->id);
270 270