Alexander Duyck
5075314e4e
dsa: Split ops up, and avoid assigning tag_protocol and receive separately
...
This change addresses several issues.
First, it was possible to set tag_protocol without setting the ops pointer.
To correct that I have reordered things so that rcv is now populated before
we set tag_protocol.
Second, it didn't make much sense to keep setting the device ops each time a
new slave was registered. So by moving the receive portion out into root
switch initialization that issue should be addressed.
Third, I wanted to avoid sending tags if the rcv pointer was not registered
so I changed the tag check to verify if the rcv function pointer is set on
the root tree. If it is then we start sending DSA tagged frames.
Finally I split the device ops pointer in the structures into two spots. I
placed the rcv function pointer in the root switch since this makes it
easiest to access from there, and I placed the xmit function pointer in the
slave for the same reason.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2014-09-15 17:24:20 -04:00
..
2014-09-04 13:50:11 -04:00
2014-08-06 18:01:23 -07:00
2014-08-08 15:57:26 -07:00
2014-09-02 10:09:43 +02:00
2014-08-09 09:15:07 -07:00
2014-08-05 17:46:42 -07:00
2014-08-07 23:37:07 -07:00
2014-08-05 17:38:45 -07:00
2014-08-07 17:17:39 -07:00
2014-09-07 21:41:53 -07:00
2014-08-06 09:38:14 -07:00
2014-08-11 11:42:39 +02:00
2014-08-19 11:55:38 -07:00
2014-08-24 19:33:10 +02:00
2014-08-25 16:15:32 -07:00
2014-08-28 09:59:42 +01:00
2014-08-30 19:28:04 +01:00
2014-08-13 18:13:19 -06:00
2014-08-06 09:38:14 -07:00
2014-08-07 14:40:09 -04:00
2014-08-09 09:15:07 -07:00
2014-08-06 18:01:27 -07:00
2014-08-15 12:38:41 -06:00
2014-08-27 23:16:13 -07:00
2014-08-06 18:01:16 -07:00
2014-08-07 14:40:10 -04:00
2014-08-05 15:59:35 -07:00
2014-08-06 18:01:16 -07:00
2014-08-11 07:14:01 -07:00
2014-08-08 15:57:33 -07:00
2014-09-05 17:47:02 -07:00
2014-09-05 12:12:20 -07:00
2014-08-22 13:56:47 -07:00
2014-09-10 14:05:07 -07:00
2014-08-07 14:40:08 -04:00
2014-08-11 11:44:11 -07:00
2014-08-06 18:01:12 -07:00
2014-08-09 17:33:44 -07:00
2014-08-22 13:18:48 -04:00
2014-08-06 18:01:15 -07:00
2014-08-06 18:01:24 -07:00
2014-08-08 17:39:48 -07:00
2014-08-06 18:01:22 -07:00
2014-08-06 18:01:19 -07:00
2014-08-06 18:01:19 -07:00
2014-08-19 10:19:39 -05:00
2014-08-26 11:15:58 +02:00
2014-08-11 12:16:51 -07:00
2014-09-04 22:26:14 -07:00
2014-08-08 15:57:32 -07:00
2014-08-28 22:22:29 -04:00
2014-08-10 21:31:58 -07:00
2014-08-08 15:57:33 -07:00
2014-08-06 18:01:24 -07:00
2014-08-06 14:24:47 +02:00
2014-09-02 10:02:13 -07:00
2014-08-06 18:01:24 -07:00
2014-08-06 18:01:15 -07:00
2014-08-08 15:57:18 -07:00
2014-08-06 18:01:21 -07:00
2014-08-08 15:57:23 -07:00
2014-08-08 15:57:27 -07:00
2014-08-06 18:01:18 -07:00
2014-08-06 18:01:22 -07:00
2014-08-06 18:01:20 -07:00
2014-08-11 11:44:11 -07:00
2014-09-15 17:24:20 -04:00
2014-08-25 10:45:28 +02:00
2014-08-22 18:04:43 -04:00
2014-08-06 18:01:21 -07:00
2014-08-11 14:06:23 +01:00
2014-08-06 18:01:21 -07:00
2014-08-08 15:57:18 -07:00
2014-08-06 18:01:17 -07:00
2014-08-06 18:01:20 -07:00
2014-08-27 22:59:39 -07:00
2014-08-23 11:39:09 -07:00
2014-09-03 01:25:32 +02:00
2014-08-13 15:13:44 +10:00
2014-08-24 18:36:01 -07:00
2014-08-06 18:01:24 -07:00
2014-09-03 20:56:32 -07:00
2014-08-08 15:57:24 -07:00
2014-09-13 12:30:26 -04:00
2014-08-08 15:57:26 -07:00
2014-08-14 18:13:46 -06:00
2014-08-05 17:46:42 -07:00
2014-08-28 11:59:38 +05:30
2014-08-08 15:57:26 -07:00
2014-08-08 15:57:31 -07:00
2014-08-06 13:03:44 +02:00
2014-09-13 17:07:21 -04:00
2014-08-08 15:57:17 -07:00
2014-08-08 15:57:32 -07:00
2014-08-08 15:57:24 -07:00
2014-08-22 21:28:02 -07:00
2014-09-04 22:35:59 +02:00
2014-08-06 13:03:43 +02:00
2014-08-07 20:39:36 -04:00
2014-09-01 21:36:28 -07:00
2014-08-07 14:40:11 -04:00
2014-08-08 15:57:22 -07:00
2014-08-08 10:39:16 -06:00
2014-08-06 18:01:19 -07:00
2014-08-06 18:01:23 -07:00
2014-08-08 15:57:26 -07:00
2014-08-06 18:01:23 -07:00