sunvnet: upgrade to VIO protocol version 1.6

This patch upgrades the sunvnet driver to support VIO protocol version 1.6.
In particular, it adds per-port MTU negotiation, allowing MTUs other than
ETH_FRAMELEN with ports using newer VIO protocol versions.

Signed-off-by: David L Stevens <david.stevens@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David L Stevens
2014-09-29 19:47:59 -04:00
committed by David S. Miller
parent a12a601ed1
commit e4defc7754
4 changed files with 143 additions and 22 deletions

View File

@@ -11,6 +11,7 @@
*/
#define VNET_TX_TIMEOUT (5 * HZ)
#define VNET_MAXPACKET 1518ULL /* ETH_FRAMELEN + VLAN_HDR */
#define VNET_TX_RING_SIZE 512
#define VNET_TX_WAKEUP_THRESH(dr) ((dr)->pending / 4)
@@ -44,6 +45,8 @@ struct vnet_port {
u32 stop_rx_idx;
bool stop_rx;
bool start_cons;
u64 rmtu;
};
static inline struct vnet_port *to_vnet_port(struct vio_driver_state *vio)