search for: netif_set_featur

Displaying 2 results from an estimated 2 matches for "netif_set_featur".

Did you mean: netif_set_features
2011 Oct 17
1
[PATCH] netback: disable features not supported by netfront
..._features mechanism. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> diff --git a/drivers/xen/netback/interface.c b/drivers/xen/netback/interface.c --- a/drivers/xen/netback/interface.c +++ b/drivers/xen/netback/interface.c @@ -98,8 +98,9 @@ static int netbk_change_mtu(struct net_d void netif_set_features(netif_t *netif) { struct net_device *dev = netif->dev; - int features = dev->features; + int features; + features = dev->features & ~(NETIF_F_SG|NETIF_F_TSO|NETIF_F_IP_CSUM); if (netif->can_sg) features |= NETIF_F_SG; if (netif->gso) _____________________________...
2011 Apr 04
0
[PATCH] linux-2.6.18/backends: use xenbus_be.ko interfaces instead of open-coding them
...ngs and indexes. */ @@ -182,12 +173,12 @@ void netif_accel_init(void); #define NET_TX_RING_SIZE __CONST_RING_SIZE(netif_tx, PAGE_SIZE) #define NET_RX_RING_SIZE __CONST_RING_SIZE(netif_rx, PAGE_SIZE) -void netif_disconnect(netif_t *netif); +void netif_disconnect(struct backend_info *be); void netif_set_features(netif_t *netif); netif_t *netif_alloc(struct device *parent, domid_t domid, unsigned int handle); -int netif_map(netif_t *netif, unsigned long tx_ring_ref, - unsigned long rx_ring_ref, unsigned int evtchn); +int netif_map(struct backend_info *be, grant_ref_t tx_ring_ref, + grant_ref_...