On Thu, Mar 01, 2018 at 10:46:34PM -0500, Jason Baron wrote:
> Make use of duplex definitions from net/eth.h.
>
> Signed-off-by: Jason Baron <jbaron@akamai.com>
> Cc: "Michael S. Tsirkin" <mst@redhat.com>
> Cc: Jason Wang <jasowang@redhat.com>
> Cc: Jiri Pirko <jiri@resnulli.us>
> Cc: virtio-dev@lists.oasis-open.org
> ---
> hw/net/rocker/rocker_fp.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/hw/net/rocker/rocker_fp.c b/hw/net/rocker/rocker_fp.c
> index 4b3c984..13a14a0 100644
> --- a/hw/net/rocker/rocker_fp.c
> +++ b/hw/net/rocker/rocker_fp.c
> @@ -16,17 +16,13 @@
>
> #include "qemu/osdep.h"
> #include "net/clients.h"
> +#include "net/eth.h"
>
> #include "rocker.h"
> #include "rocker_hw.h"
> #include "rocker_fp.h"
> #include "rocker_world.h"
>
> -enum duplex {
> - DUPLEX_HALF = 0,
> - DUPLEX_FULL
> -};
> -
This is hardware emulation, so I actually suspect it
should be renamed ROCKER_FP_HALF/ROCKER_FP_FULL.
> struct fp_port {
> Rocker *r;
> World *world;
> --
> 2.7.4