[Qemu-devel] [PATCH 4/5] rocker: mark copy-to-cpu pkts as forwarding offloaded

2015-07-01 Thread sfeldma
From: Scott Feldman For pkts copied to the CPU (to be processed by guest driver), mark the Rx descriptor with flag "OFFLOAD_FWD" to indicate device has already forwarded pkt. The guest driver will use this indicator to avoid duplicate forwarding in the guest OS. Examples include bcast/mcast/unk

[Qemu-devel] [PATCH 5/5] rocker: tests: don't need to specify master/self when setting vlans

2015-07-01 Thread sfeldma
From: Scott Feldman 4.1 Linux kernel doesn't require specifying "master" or "self" when setting vlans on a port, so clean these up from the tests that use vlans. Signed-off-by: Scott Feldman --- tests/rocker/bridge-vlan |4 ++-- tests/rocker/bridge-vlan-stp |4 ++-- 2 files changed

[Qemu-devel] [PATCH 2/5] rocker: fix missing break statements

2015-07-01 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Reported-by: Paolo Bonzini --- hw/net/rocker/rocker.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c index 4d25842..55ad317 100644 --- a/hw/net/rocker/rocker.c +++ b/hw/net/rocker/rocker.

[Qemu-devel] [PATCH 3/5] rocker: return -1 when dropping packet on ingress

2015-07-01 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman --- hw/net/rocker/rocker_world.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/rocker/rocker_world.c b/hw/net/rocker/rocker_world.c index b991e87..a6b18f1 100644 --- a/hw/net/rocker/rocker_world.c +++ b/hw/net/rock

[Qemu-devel] [PATCH 0/5] rocker device updates

2015-07-01 Thread sfeldma
From: Scott Feldman A couple of fixes reported by Paolo Bonzini and some changes to sync with current Linux 4.1 kernel rocker device driver. Scott Feldman (5): rocker: fix misplaced break statement rocker: fix missing break statements rocker: return -1 when dropping packet on ingress roc

[Qemu-devel] [PATCH 1/5] rocker: fix misplaced break statement

2015-07-01 Thread sfeldma
From: Scott Feldman Premature break in switch case block. This particular case (group L2 rewrite) will be used for L2 LAG and L3 ECMP support, neither of which are enabled in the guest driver at this time, but are under development. Signed-off-by: Scott Feldman Reported-by: Paolo Bonzini ---

[Qemu-devel] [PATCH v2] rocker: don't queue receive pkts when port is disabled

2015-06-30 Thread sfeldma
From: Scott Feldman Commit 6e99c63 ("net/socket: Drop net_socket_can_send") changed the semantics around .can_receive for sockets to now require the device to flush queued pkts when transitioning to a .can_receive=true state. Rocker device was not flushing the queue on .can_receive=true transiti

[Qemu-devel] [PATCH] rocker: don't queue receive pkts when port is disabled

2015-06-30 Thread sfeldma
From: Scott Feldman Commit 6e99c63 ("net/socket: Drop net_socket_can_send") changed the semantics around .can_receive for sockets to now require the device to flush queued pkts when transitioning to a .can_receive=true state. Rocker device was not flushing the queue on .can_receive=true transiti

[Qemu-devel] [PATCH v4 4/4] qmp/hmp: add rocker device support

2015-06-10 Thread sfeldma
From: Scott Feldman Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: (qemu) info rocker sw1 name: sw1 id: 0x013512005452 ports: 4 (qemu) info rocker-ports sw1 ena/speed/

[Qemu-devel] [PATCH v4 3/4] rocker: bring link up/down on PHY enable/disable

2015-06-10 Thread sfeldma
From: Scott Feldman When the OS driver enables/disables the port, go ahead and set the port's link status to up/down in response to the change. This more closely emulates real hardware when the PHY for the port is brought up/down and the PHY negotiates carrier (link status) with link partner. I

[Qemu-devel] [PATCH v4 2/4] rocker: update tests using hw-derived interface names

2015-06-10 Thread sfeldma
From: Scott Feldman With previous patch to support phy name attribute for each port, the OS can name port interfaces using the hw-derived name. So update rocker tests to use the new hw-derived interface names. Signed-off-by: Scott Feldman Reviewed-by: Stefan Hajnoczi --- tests/rocker/bridge

[Qemu-devel] [PATCH v4 0/4] rocker device updates

2015-06-10 Thread sfeldma
From: Scott Feldman v4: Address review comments from Stefan Hajnoczi: - hmp.c: change flow->hits printing to PRIu64 since it's uint64_t Address review comments from Eric Blake: - qapi/rocker.txt: fix comments to match commands - qmp-commands.hx: wrap some long comment lines v3: Address r

[Qemu-devel] [PATCH v4 1/4] rocker: Add support for phys name

2015-06-10 Thread sfeldma
From: David Ahern Add ROCKER_TLV_CMD_PORT_SETTINGS_PHYS_NAME to port settings. This attribute exports the port name to the guest OS allowing it to name interfaces with sensible defaults. Mostly done by Scott for phys_id support; adapted to phys_name by David. Signed-off-by: Scott Feldman Signe

[Qemu-devel] [PATCH v3 3/4] rocker: bring link up/down on PHY enable/disable

2015-05-29 Thread sfeldma
From: Scott Feldman When the OS driver enables/disables the port, go ahead and set the port's link status to up/down in response to the change. This more closely emulates real hardware when the PHY for the port is brought up/down and the PHY negotiates carrier (link status) with link partner. I

[Qemu-devel] [PATCH v3 4/4] qmp/hmp: add rocker device support

2015-05-29 Thread sfeldma
From: Scott Feldman v3: Address review comments from Stefan Hajnoczi: - Add missing hw/net/rocker/qmp-norocker.c file. - Add missing curly brackets to a for loop v2: Address review comments from Stefan Hajnoczi: - Add missing qapi/rocker.json file. - Use PRIx64 for print uint64 value -

[Qemu-devel] [PATCH v3 2/4] rocker: update tests using hw-derived interface names

2015-05-29 Thread sfeldma
From: Scott Feldman With previous patch to support phy name attribute for each port, the OS can name port interfaces using the hw-derived name. So update rocker tests to use the new hw-derived interface names. Signed-off-by: Scott Feldman Reviewed-by: Stefan Hajnoczi --- tests/rocker/bridge

[Qemu-devel] [PATCH v3 0/4] rocker device updates

2015-05-29 Thread sfeldma
From: Scott Feldman v3: Address review comments from Stefan Hajnoczi: - Add missing hw/net/rocker/qmp-norocker.c file. - Add missing curly brackets to a for loop v2: Address some review comments by Stefan Hajnoczi: see individual patches for v1->v2 changes. v1: Some rocker device updates

[Qemu-devel] [PATCH v3 1/4] rocker: Add support for phys name

2015-05-29 Thread sfeldma
From: David Ahern v2: Review comment from Stefan Hajnoczi: - use private ROCKER_IFNAMSIZ = 16 to avoid breaking Windows build as Windows does not include v1: Add ROCKER_TLV_CMD_PORT_SETTINGS_PHYS_NAME to port settings. This attribute exports the port name to the guest OS allowing it to n

[Qemu-devel] [PATCH v2 4/4] qmp/hmp: add rocker device support

2015-05-19 Thread sfeldma
From: Scott Feldman v2: Address review comments from Stefan Hajnoczi: - Add missing qapi/rocker.json file. - Use PRIx64 for print uint64 value - when CONFIG_ROCKER is not defined, build qmp-norocker.o stub using hw/net/Makefile.objs rather than in the top-level Makefile.target Change qap

[Qemu-devel] [PATCH v2 1/4] rocker: Add support for phys name

2015-05-19 Thread sfeldma
From: David Ahern v2: Review comment from Stefan Hajnoczi: - use private ROCKER_IFNAMSIZ = 16 to avoid breaking Windows build as Windows does not include v1: Add ROCKER_TLV_CMD_PORT_SETTINGS_PHYS_NAME to port settings. This attribute exports the port name to the guest OS allowing it to n

[Qemu-devel] [PATCH v2 0/4] rocker device updates

2015-05-19 Thread sfeldma
From: Scott Feldman v2: Address some review comments by Stefan Hajnoczi: see individual patches for v1->v2 changes. v1: Some rocker device updates we've been holding onto waiting for base rocker device to be pulled into 2.4. David added support for the device to return the physical port name,

[Qemu-devel] [PATCH v2 3/4] rocker: bring link up/down on PHY enable/disable

2015-05-19 Thread sfeldma
From: Scott Feldman When the OS driver enables/disables the port, go ahead and set the port's link status to up/down in response to the change. This more closely emulates real hardware when the PHY for the port is brought up/down and the PHY negotiates carrier (link status) with link partner. I

[Qemu-devel] [PATCH v2 2/4] rocker: update tests using hw-derived interface names

2015-05-19 Thread sfeldma
From: Scott Feldman With previous patch to support phy name attribute for each port, the OS can name port interfaces using the hw-derived name. So update rocker tests to use the new hw-derived interface names. Signed-off-by: Scott Feldman Reviewed-by: Stefan Hajnoczi --- tests/rocker/bridge

[Qemu-devel] [PATCH 3/4] rocker: bring link up/down on PHY enable/disable

2015-05-13 Thread sfeldma
From: Scott Feldman When the OS driver enables/disables the port, go ahead and set the port's link status to up/down in response to the change. This more closely emulates real hardware when the PHY for the port is brought up/down and the PHY negotiates carrier (link status) with link partner. I

[Qemu-devel] [PATCH 4/4] qmp/hmp: add rocker device support

2015-05-13 Thread sfeldma
From: Scott Feldman Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: (qemu) info rocker sw1 name: sw1 id: 0x013512005452 ports: 4 (qemu) info rocker-ports sw1 ena/speed/

[Qemu-devel] [PATCH 1/4] rocker: Add support for phys name

2015-05-13 Thread sfeldma
From: David Ahern Add ROCKER_TLV_CMD_PORT_SETTINGS_PHYS_NAME to port settings. This attribute exports the port name to the guest OS allowing it to name interfaces with sensible defaults. Mostly done by Scott for phys_id support; adapted to phys_name by David. Signed-off-by: Scott Feldman Signe

[Qemu-devel] [PATCH 2/4] rocker: update tests using hw-derived interface names

2015-05-13 Thread sfeldma
From: Scott Feldman With previous patch to support phy name attribute for each port, the OS can name port interfaces using the hw-derived name. So update rocker tests to use the new hw-derived interface names. Signed-off-by: Scott Feldman --- tests/rocker/bridge | 25 ++

[Qemu-devel] [PATCH 0/4] rocker device updates

2015-05-13 Thread sfeldma
From: Scott Feldman Some rocker device updates we've been holding onto waiting for base rocker device to be pulled into 2.4. David added support for the device to return the physical port name, which in turn can be used by the OS to name the interface. I added a small change the bringe link up/d

[Qemu-devel] [PATCH v8 8/9] MAINTAINERS: add rocker

2015-03-13 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d7e9ba2..8cbf013 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -754,6 +754,12 @@ S: Maintained F: hw/net/vmxn

[Qemu-devel] [PATCH v8 9/9] rocker: timestamp on the debug logs helps correlate with events in the VM

2015-03-13 Thread sfeldma
From: David Ahern Signed-off-by: David Ahern Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- hw/net/rocker/rocker.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h index 6ae74ff..b3310b6 100644 --- a/

[Qemu-devel] [PATCH v8 4/9] pci: add rocker device ID

2015-03-13 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/pci-ids.txt |1 + include/hw/pci/pci.h |1 + 2 files changed, 2 insertions(+) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index c6732fe..e4a4490 100644 --- a/docs/specs/pci-ids

[Qemu-devel] [PATCH v8 1/9] net: add MAC address string printer

2015-03-13 Thread sfeldma
From: Scott Feldman We can use this in virtio-net code as well as new Rocker driver code, so up-level this. Signed-off-by: Scott Feldman Reviewed-by: Eric Blake --- include/net/net.h |1 + net/net.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/include/net/net.h b

[Qemu-devel] [PATCH v8 3/9] rocker: add register programming guide

2015-03-13 Thread sfeldma
From: Scott Feldman This is the register programming guide for the Rocker device. It's intended for driver writers and device writers. It covers the device's PCI space, the register set, DMA interface, and interrupts. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/roc

[Qemu-devel] [PATCH v8 5/9] pci: add network device class 'other' for network switches

2015-03-13 Thread sfeldma
From: Scott Feldman Rocker is an ethernet switch device, so add 'other' network device class as defined by PCI to cover these types of devices. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- include/hw/pci/pci_ids.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/hw

[Qemu-devel] [PATCH v8 7/9] rocker: add tests

2015-03-13 Thread sfeldma
From: Scott Feldman Add some basic test for rocker to test L2/L3/L4 functionality. Requires an external test environment, simp, located here: https://github.com/scottfeldman/simp To run tests, simp environment must be installed and a suitable VM image built and installed with a Linux 3.18 (or

[Qemu-devel] [PATCH v8 0/9] rocker: add new rocker ethernet switch device

2015-03-13 Thread sfeldma
From: Scott Feldman v8: - From Stefan Hajnoczi's net-pull-request v3, merge in these changes: - Squash David Ahern's clang struct definition warnings fix - Squash in Jiri's fix for rocker format string specifiers [Peter] - Squash in Windows build fix [Peter] - In addition, fix

[Qemu-devel] [PATCH v8 2/9] virtio-net: use qemu_mac_strdup_printf

2015-03-13 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Reviewed-by: Eric Blake --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 27adcc5..321bef4 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/vir

[Qemu-devel] [PATCH v7 10/10] rocker: timestamp on the debug logs helps correlate with events in the VM

2015-02-16 Thread sfeldma
From: David Ahern Signed-off-by: David Ahern Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- hw/net/rocker/rocker.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h index ef77487..5ae8aff 100644 --- a/

[Qemu-devel] [PATCH v7 08/10] rocker: add tests

2015-02-16 Thread sfeldma
From: Scott Feldman Add some basic test for rocker to test L2/L3/L4 functionality. Requires an external test environment, simp, located here: https://github.com/scottfeldman/simp To run tests, simp environment must be installed and a suitable VM image built and installed with a Linux 3.18 (or

[Qemu-devel] [PATCH v7 01/10] net: add MAC address string printer

2015-02-16 Thread sfeldma
From: Scott Feldman We can use this in virtio-net code as well as new Rocker driver code, so up-level this. Signed-off-by: Scott Feldman Reviewed-by: Eric Blake --- include/net/net.h |1 + net/net.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/include/net/net.h b

[Qemu-devel] [PATCH v7 07/10] qmp: add rocker device support

2015-02-16 Thread sfeldma
From: Scott Feldman Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: (qemu) info rocker sw1 name: sw1 id: 0x013512005452 ports: 4 (qemu) info rocker-ports sw1 ena/speed/

[Qemu-devel] [PATCH v7 03/10] rocker: add register programming guide

2015-02-16 Thread sfeldma
From: Scott Feldman This is the register programming guide for the Rocker device. It's intended for driver writers and device writers. It covers the device's PCI space, the register set, DMA interface, and interrupts. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/roc

[Qemu-devel] [PATCH v7 04/10] pci: add rocker device ID

2015-02-16 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/pci-ids.txt |1 + include/hw/pci/pci.h |1 + 2 files changed, 2 insertions(+) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index c6732fe..e4a4490 100644 --- a/docs/specs/pci-ids

[Qemu-devel] [PATCH v7 09/10] MAINTAINERS: add rocker

2015-02-16 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8c06739..2ea3625 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -741,6 +741,12 @@ S: Maintained F: hw/net/vmxn

[Qemu-devel] [PATCH v7 05/10] pci: add network device class 'other' for network switches

2015-02-16 Thread sfeldma
From: Scott Feldman Rocker is an ethernet switch device, so add 'other' network device class as defined by PCI to cover these types of devices. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- include/hw/pci/pci_ids.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/hw

[Qemu-devel] [PATCH v7 02/10] virtio-net: use qemu_mac_strdup_printf

2015-02-16 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Reviewed-by: Eric Blake --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 45da34a..698156f 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/vir

[Qemu-devel] [PATCH v7 00/10] rocker: add new rocker ethernet switch device

2015-02-16 Thread sfeldma
From: Scott Feldman v7: - Per Stefan Hajnoczi comments: - #ifdef CONFIG_ROCKER wrapper around qmp/hmp to fix compile when PCI is disabled or rocker is disabled. v6: - Per Stefan Hajnoczi review: - Move tests to tests/rocker - Fix some mem leaks - Fix doc grammer/sp

[Qemu-devel] [PATCH v6 05/10] pci: add network device class 'other' for network switches

2015-02-04 Thread sfeldma
From: Scott Feldman Rocker is an ethernet switch device, so add 'other' network device class as defined by PCI to cover these types of devices. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- include/hw/pci/pci_ids.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/hw

[Qemu-devel] [PATCH v6 03/10] rocker: add register programming guide

2015-02-04 Thread sfeldma
From: Scott Feldman This is the register programming guide for the Rocker device. It's intended for driver writers and device writers. It covers the device's PCI space, the register set, DMA interface, and interrupts. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/roc

[Qemu-devel] [PATCH v6 10/10] rocker: timestamp on the debug logs helps correlate with events in the VM

2015-02-04 Thread sfeldma
From: David Ahern Signed-off-by: David Ahern Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- hw/net/rocker/rocker.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h index ef77487..5ae8aff 100644 --- a/

[Qemu-devel] [PATCH v6 09/10] MAINTAINERS: add rocker

2015-02-04 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 430688d..8b6f8d4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -736,6 +736,12 @@ S: Maintained F: hw/net/vmxn

[Qemu-devel] [PATCH v6 07/10] qmp: add rocker device support

2015-02-04 Thread sfeldma
From: Scott Feldman Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: (qemu) info rocker sw1 name: sw1 id: 0x013512005452 ports: 4 (qemu) info rocker-ports sw1 ena/speed/

[Qemu-devel] [PATCH v6 01/10] net: add MAC address string printer

2015-02-04 Thread sfeldma
From: Scott Feldman We can use this in virtio-net code as well as new Rocker driver code, so up-level this. Signed-off-by: Scott Feldman Reviewed-by: Eric Blake --- include/net/net.h |1 + net/net.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/include/net/net.h b

[Qemu-devel] [PATCH v6 08/10] rocker: add tests

2015-02-04 Thread sfeldma
From: Scott Feldman Add some basic test for rocker to test L2/L3/L4 functionality. Requires an external test environment, simp, located here: https://github.com/scottfeldman/simp To run tests, simp environment must be installed and a suitable VM image built and installed with a Linux 3.18 (or

[Qemu-devel] [PATCH v6 02/10] virtio-net: use qemu_mac_strdup_printf

2015-02-04 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Reviewed-by: Eric Blake --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 45da34a..698156f 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/vir

[Qemu-devel] [PATCH v6 04/10] pci: add rocker device ID

2015-02-04 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/pci-ids.txt |1 + include/hw/pci/pci.h |1 + 2 files changed, 2 insertions(+) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index c6732fe..e4a4490 100644 --- a/docs/specs/pci-ids

[Qemu-devel] [PATCH v6 00/10] rocker: add new rocker ethernet switch device

2015-02-04 Thread sfeldma
From: Scott Feldman v6: - Per Stefan Hajnoczi review: - Move tests to tests/rocker - Fix some mem leaks - Fix doc grammer/spelling - Per Eric Blake review: - Add #optional to optional args comments in qmp interface - Add "query-" prefix to qmp cmds - Fix doc gramm

[Qemu-devel] [PATCH v5 09/10] MAINTAINERS: add rocker

2015-01-22 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 430688d..8b6f8d4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -736,6 +736,12 @@ S: Maintained F: hw/net/vmxn

[Qemu-devel] [PATCH v5 05/10] pci: add network device class 'other' for network switches

2015-01-22 Thread sfeldma
From: Scott Feldman Rocker is an ethernet switch device, so add 'other' network device class as defined by PCI to cover these types of devices. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- include/hw/pci/pci_ids.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/hw

[Qemu-devel] [PATCH v5 01/10] net: add MAC address string printer

2015-01-22 Thread sfeldma
From: Scott Feldman We can use this in virtio-net code as well as new Rocker driver code, so up-level this. Signed-off-by: Scott Feldman --- include/net/net.h |1 + net/net.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/include/net/net.h b/include/net/net.h index

[Qemu-devel] [PATCH v5 08/10] rocker: add tests

2015-01-22 Thread sfeldma
From: Scott Feldman Add some basic test for rocker to test L2/L3/L4 functionality. Requires an external test environment, simp, located here: https://github.com/scottfeldman/simp To run tests, simp environment must be installed and a suitable VM image built and installed with a Linux 3.18 (or

[Qemu-devel] [PATCH v5 10/10] rocker: timestamp on the debug logs helps correlate with events in the VM

2015-01-22 Thread sfeldma
From: David Ahern Signed-off-by: David Ahern Signed-off-by: Scott Feldman --- hw/net/rocker/rocker.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h index ef77487..5ae8aff 100644 --- a/hw/net/rocker/rocker.h +++

[Qemu-devel] [PATCH v5 04/10] pci: add rocker device ID

2015-01-22 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/pci-ids.txt |1 + include/hw/pci/pci.h |1 + 2 files changed, 2 insertions(+) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index c6732fe..e4a4490 100644 --- a/docs/specs/pci-ids

[Qemu-devel] [PATCH v5 03/10] rocker: add register programming guide

2015-01-22 Thread sfeldma
From: Scott Feldman This is the register programming guide for the Rocker device. It's intended for driver writers and device writers. It covers the device's PCI space, the register set, DMA interface, and interrupts. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/roc

[Qemu-devel] [PATCH v5 07/10] qmp: add rocker device support

2015-01-22 Thread sfeldma
From: Scott Feldman Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: (qemu) info rocker sw1 name: sw1 id: 0x013512005452 ports: 4 (qemu) info rocker-ports sw1 ena/speed/

[Qemu-devel] [PATCH v5 02/10] virtio-net: use qemu_mac_strdup_printf

2015-01-22 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 45da34a..698156f 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -226,12 +226

[Qemu-devel] [PATCH v5 00/10] rocker: add new rocker ethernet switch device

2015-01-22 Thread sfeldma
From: Scott Feldman v5: - Per Jason Wang review: - Fix some missing/wrong references in the rocker.txt spec - mark rocker as unmigratable. v4: - Per Paolo Bonzini review: - move reg_guide.txt to docs/specs/rocker.txt - fix some spelling/grammer mistakes in the rocker.txt

[Qemu-devel] [PATCH v4 10/10] rocker: timestamp on the debug logs helps correlate with events in the VM

2015-01-16 Thread sfeldma
From: David Ahern Signed-off-by: David Ahern Signed-off-by: Scott Feldman --- hw/net/rocker/rocker.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h index ef77487..5ae8aff 100644 --- a/hw/net/rocker/rocker.h +++

[Qemu-devel] [PATCH v4 09/10] MAINTAINERS: add rocker

2015-01-16 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 430688d..8b6f8d4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -736,6 +736,12 @@ S: Maintained F: hw/net/vmxn

[Qemu-devel] [PATCH v4 03/10] rocker: add register programming guide

2015-01-16 Thread sfeldma
From: Scott Feldman This is the register programming guide for the Rocker device. It's intended for driver writers and device writers. It covers the device's PCI space, the register set, DMA interface, and interrupts. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/roc

[Qemu-devel] [PATCH v4 05/10] pci: add network device class 'other' for network switches

2015-01-16 Thread sfeldma
From: Scott Feldman Rocker is an ethernet switch device, so add 'other' network device class as defined by PCI to cover these types of devices. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- include/hw/pci/pci_ids.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/hw

[Qemu-devel] [PATCH v4 04/10] pci: add rocker device ID

2015-01-16 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/pci-ids.txt |1 + include/hw/pci/pci.h |1 + 2 files changed, 2 insertions(+) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index c6732fe..e4a4490 100644 --- a/docs/specs/pci-ids

[Qemu-devel] [PATCH v4 01/10] net: add MAC address string printer

2015-01-16 Thread sfeldma
From: Scott Feldman We can use this in virtio-net code as well as new Rocker driver code, so up-level this. Signed-off-by: Scott Feldman --- include/net/net.h |1 + net/net.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/include/net/net.h b/include/net/net.h index

[Qemu-devel] [PATCH v4 07/10] qmp: add rocker device support

2015-01-16 Thread sfeldma
From: Scott Feldman Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: (qemu) info rocker sw1 name: sw1 id: 0x013512005452 ports: 4 (qemu) info rocker-ports sw1 ena/speed/

[Qemu-devel] [PATCH v4 08/10] rocker: add tests

2015-01-16 Thread sfeldma
From: Scott Feldman Add some basic test for rocker to test L2/L3/L4 functionality. Requires an external test environment, simp, located here: https://github.com/scottfeldman/simp To run tests, simp environment must be installed and a suitable VM image built and installed with a Linux 3.18 (or

[Qemu-devel] [PATCH v4 02/10] virtio-net: use qemu_mac_strdup_printf

2015-01-16 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 45da34a..698156f 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -226,12 +226

[Qemu-devel] [PATCH v4 00/10] rocker: add new rocker ethernet switch device

2015-01-16 Thread sfeldma
From: Scott Feldman v4: - Per Paolo Bonzini review: - move reg_guide.txt to docs/specs/rocker.txt - fix some spelling/grammer mistakes in the rocker.txt doc - fix some misleading/wrong statements in rocker.txt - add double 4-byte access for 64-bit registers - define new

[Qemu-devel] [PATCH v3 9/9] MAINTAINERS: add rocker

2015-01-10 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7fc3cdb..0f2dada 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -734,6 +734,12 @@ S: Maintained F: hw/net/vmxn

[Qemu-devel] [PATCH v3 4/9] pci: add rocker device ID

2015-01-10 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/pci-ids.txt |1 + include/hw/pci/pci.h |1 + 2 files changed, 2 insertions(+) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index c6732fe..e4a4490 100644 --- a/docs/specs/pci-ids

[Qemu-devel] [PATCH v3 7/9] qmp: add rocker device support

2015-01-10 Thread sfeldma
From: Scott Feldman Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: (qemu) info rocker sw1 name: sw1 id: 0x013512005452 ports: 4 (qemu) info rocker-ports sw1 ena/speed/

[Qemu-devel] [PATCH v3 3/9] rocker: add register programming guide

2015-01-10 Thread sfeldma
From: Scott Feldman This is the register programming guide for the Rocker device. It's intended for driver writers and device writers. It covers the device's PCI space, the register set, DMA interface, and interrupts. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- hw/net/rocker/

[Qemu-devel] [PATCH v3 8/9] rocker: add tests

2015-01-10 Thread sfeldma
From: Scott Feldman Add some basic test for rocker to test L2/L3/L4 functionality. Requires an external test environment, simp, located here: https://github.com/scottfeldman/simp To run tests, simp environment must be installed and a suitable VM image built and installed with a Linux 3.18 (or

[Qemu-devel] [PATCH v3 1/9] net: add MAC address string printer

2015-01-10 Thread sfeldma
From: Scott Feldman We can use this in virtio-net code as well as new Rocker driver code, so up-level this. Signed-off-by: Scott Feldman --- include/net/net.h |1 + net/net.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/include/net/net.h b/include/net/net.h index

[Qemu-devel] [PATCH v3 5/9] pci: add network device class 'other' for network switches

2015-01-10 Thread sfeldma
From: Scott Feldman Rocker is an ethernet switch device, so add 'other' network device class as defined by PCI to cover these types of devices. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- include/hw/pci/pci_ids.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/hw

[Qemu-devel] [PATCH v3 0/9] rocker: add new rocker ethernet switch device

2015-01-10 Thread sfeldma
From: Scott Feldman v3: - Per Stefan Hajnoczi review: - move HMP rocker cmds to "info rocker" - prefix QMP rocker cmds with query- - tag QMP cmds as "Since 2.3" - convert structs to typedef with CamelCase naming - Remove SDHCI device ID move patch...Paolo Bonzini is addres

[Qemu-devel] [PATCH v3 2/9] virtio-net: use qemu_mac_strdup_printf

2015-01-10 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index e574bd4..9afe669 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -226,12 +226

[Qemu-devel] [PATCH v2 10/10] MAINTAINERS: add rocker

2015-01-05 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 01cfb05..287b147 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -730,6 +730,12 @@ S: Maintained F: hw/net/vmxn

[Qemu-devel] [PATCH v2 04/10] rocker: add register programming guide

2015-01-05 Thread sfeldma
From: Scott Feldman This is the register programming guide for the Rocker device. It's intended for driver writers and device writers. It covers the device's PCI space, the register set, DMA interface, and interrupts. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- hw/net/rocker/

[Qemu-devel] [PATCH v2 06/10] pci: add network device class 'other' for network switches

2015-01-05 Thread sfeldma
From: Scott Feldman Rocker is an ethernet switch device, so add 'other' network device class as defined by PCI to cover these types of devices. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- include/hw/pci/pci_ids.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/hw

[Qemu-devel] [PATCH v2 08/10] qmp: add rocker device support

2015-01-05 Thread sfeldma
From: Scott Feldman Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: (qemu) rocker sw1 name: sw1 id: 0x013512005452 ports: 4 (qemu) rocker-ports sw1 ena/speed/ auto

[Qemu-devel] [PATCH v2 05/10] pci: add rocker device ID

2015-01-05 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/pci-ids.txt |1 + include/hw/pci/pci.h |1 + 2 files changed, 2 insertions(+) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index c6732fe..e4a4490 100644 --- a/docs/specs/pci-ids

[Qemu-devel] [PATCH v2 02/10] net: add MAC address string printer

2015-01-05 Thread sfeldma
From: Scott Feldman We can use this in virtio-net code as well as new Rocker driver code, so up-level this. Signed-off-by: Scott Feldman --- include/net/net.h |1 + net/net.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/include/net/net.h b/include/net/net.h index

[Qemu-devel] [PATCH v2 03/10] virtio-net: use qemu_mac_strdup_printf

2015-01-05 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index e574bd4..9afe669 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -226,12 +226

[Qemu-devel] [PATCH v2 09/10] rocker: add tests

2015-01-05 Thread sfeldma
From: Scott Feldman Add some basic test for rocker to test L2/L3/L4 functionality. Requires an external test environment, simp, located here: https://github.com/scottfeldman/simp To run tests, simp environment must be installed and a suitable VM image built and installed with a Linux 3.18 (or

[Qemu-devel] [PATCH v2 00/10] rocker: add new rocker ethernet switch device

2015-01-05 Thread sfeldma
From: Scott Feldman v2: - Address reg_guide.txt review comments from Eric Blake - Address QMP review comments from Eric Blake v1: [This is a collaboration between myself and Jiri Pirko]. This patch set adds a new ethernet switch device, called rocker. Rocker is intended to emulate HW featu

[Qemu-devel] [PATCH v2 00/10] rocker: add new rocker ethernet switch device

2015-01-05 Thread sfeldma
From: Scott Feldman v2: - Address reg_guide.txt review comments from Eric Blake - Address QMP review comments from Eric Blake v1: [This is a collaboration between myself and Jiri Pirko]. This patch set adds a new ethernet switch device, called rocker. Rocker is intended to emulate HW featu

[Qemu-devel] [PATCH v2 01/10] pci: move REDHAT_SDHCI device ID to make room for Rocker

2015-01-05 Thread sfeldma
From: Scott Feldman The rocker device uses same PCI device ID as sdhci. Since rocker device driver has already been accepted into Linux 3.18, and REDHAT_SDHCI device ID isn't used by any drivers, it's safe to move REDHAT_SDHCI device ID, avoiding conflict with rocker. Signed-off-by: Scott Feldm

[Qemu-devel] [PATCH 09/10] rocker: add tests

2014-12-29 Thread sfeldma
From: Scott Feldman Add some basic test for rocker to test L2/L3/L4 functionality. Requires an external test environment, simp, located here: https://github.com/scottfeldman/simp To run tests, simp environment must be installed and a suitable VM image built and installed with a Linux 3.18 (or

[Qemu-devel] [PATCH 03/10] virtio-net: use qemu_mac_strdup_printf

2014-12-29 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index e574bd4..9afe669 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -226,12 +226

[Qemu-devel] [PATCH 08/10] qmp: add rocker device support

2014-12-29 Thread sfeldma
From: Scott Feldman Add QMP/HMP support for rocker devices. This is mostly for debugging purposes to see inside the device's tables and port configurations. Some examples: (qemu) rocker sw1 name: sw1 id: 0x013512005452 ports: 4 (qemu) rocker-ports sw1 ena/speed/ auto

  1   2   >