ia64/xen-unstable

changeset 12021:66cdabe97205

[NET] back: Advertise that we do not support rx-flip path any more.
This will now be used only by older guests who do not understand
the feature-rx-{copy,flip} feature flags.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Oct 26 11:50:17 2006 +0100 (2006-10-26)
parents af2155df2aed
children 2041122e0c4a
files linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c	Thu Oct 26 11:26:05 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c	Thu Oct 26 11:50:17 2006 +0100
     1.3 @@ -93,10 +93,22 @@ static int netback_probe(struct xenbus_d
     1.4  			goto abort_transaction;
     1.5  		}
     1.6  
     1.7 +		/* We support rx-copy path. */
     1.8  		err = xenbus_printf(xbt, dev->nodename,
     1.9  				    "feature-rx-copy", "%d", 1);
    1.10  		if (err) {
    1.11 -			message = "writing feature-copying";
    1.12 +			message = "writing feature-rx-copy";
    1.13 +			goto abort_transaction;
    1.14 +		}
    1.15 +
    1.16 +		/*
    1.17 +		 * We don't support rx-flip path (except old guests who don't
    1.18 +		 * grok this feature flag).
    1.19 +		 */
    1.20 +		err = xenbus_printf(xbt, dev->nodename,
    1.21 +				    "feature-rx-flip", "%d", 0);
    1.22 +		if (err) {
    1.23 +			message = "writing feature-rx-flip";
    1.24  			goto abort_transaction;
    1.25  		}
    1.26