diff options
author | Jiri Pirko <jiri@mellanox.com> | 2016-02-16 15:14:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-17 23:08:34 -0500 |
commit | e420114eef4a3a5025a243b89b0dc343101e3d3c (patch) | |
tree | 34c2ebdfa412e4ca5b159dbc9c6d2819b1a8cd5b /drivers/net/ethernet/rocker/rocker_ofdpa.c | |
parent | 0514c4e809a93544253ba5fb797379fa9cc45cce (diff) | |
download | lwn-e420114eef4a3a5025a243b89b0dc343101e3d3c.tar.gz lwn-e420114eef4a3a5025a243b89b0dc343101e3d3c.zip |
rocker: introduce worlds infrastructure
This is another step on the way to per-world clean cut. Introduce world
ops hooks which each world can implement in world-specific way.
Also introduce world infrastructure along with OF-DPA world stub.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/rocker/rocker_ofdpa.c')
-rw-r--r-- | drivers/net/ethernet/rocker/rocker_ofdpa.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/net/ethernet/rocker/rocker_ofdpa.c b/drivers/net/ethernet/rocker/rocker_ofdpa.c new file mode 100644 index 000000000000..155dc534a228 --- /dev/null +++ b/drivers/net/ethernet/rocker/rocker_ofdpa.c @@ -0,0 +1,27 @@ +/* + * drivers/net/ethernet/rocker/rocker_ofdpa.c - Rocker switch OF-DPA-like + * implementation + * Copyright (c) 2014 Scott Feldman <sfeldma@gmail.com> + * Copyright (c) 2014-2016 Jiri Pirko <jiri@mellanox.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#include <linux/kernel.h> +#include "rocker.h" + +struct ofdpa { +}; + +struct ofdpa_port { +}; + +struct rocker_world_ops rocker_ofdpa_ops = { + .kind = "ofdpa", + .priv_size = sizeof(struct ofdpa), + .port_priv_size = sizeof(struct ofdpa_port), + .mode = ROCKER_PORT_MODE_OF_DPA, +}; |