From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by dpdk.org (Postfix) with ESMTP id 1567DAE99 for ; Thu, 17 Apr 2014 16:05:46 +0200 (CEST) Received: by mail-wi0-f170.google.com with SMTP id bs8so2775555wib.5 for ; Thu, 17 Apr 2014 07:05:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=kiaonH/bPDkOyMmONGlcBKUC+i4jvigm7vNlUsGFBXQ=; b=DEK5WdnbLU/aPskQBddY37OHw2h/4tkg/njuHyWhkqNPB1/aoJJvoaTJt6p+udbdb2 jFuD/9R/lJhbRoL8dXjm/miRXczl8RUg7VKhaWL5kLy9/rhvNpVIBkLSZ1AUFM82MUY7 LKJ1ZQORCaW4OzGx+2Oq3BtvVUqhIlEntdRjlsEFxU/mqy0dvxFwWoaBGNxsnylwggsP 6SirVV2qeQnaqq4OE2r3eKZMXHCdnTnl0IzE1JHdqi4+kP8vEQNTotZ8cvdh7/y/aS7s Zwh98G2/vOaYCMBUTGZ4mosPzGFcReV2VeQODTt5ZMP6z5zz1pv9+4HwOUl4S3XZzvxC xwyw== X-Gm-Message-State: ALoCoQmyML15EzYVtOt9f2ugpR1ettmAKiVe+LOfCisOUhBoPaVkzI+u8sSBcZ5DxXfyK4ByHKk5 X-Received: by 10.180.106.134 with SMTP id gu6mr24146524wib.61.1397743547793; Thu, 17 Apr 2014 07:05:47 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id dg5sm5067938wib.12.2014.04.17.07.05.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Apr 2014 07:05:46 -0700 (PDT) From: Thomas Monjalon To: Fred Pedrisa Date: Thu, 17 Apr 2014 16:05:46 +0200 Message-ID: <3597800.xQpD0niGsC@xps13> Organization: 6WIND User-Agent: KMail/4.12.4 (Linux/3.14.1-1-ARCH; KDE/4.12.4; x86_64; ; ) In-Reply-To: References: <016f01cf48c3$99aedc30$cd0c9490$@hotmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] RES: RES: hw.nic_uio.bdfs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 14:05:47 -0000 Hi Fred, 2014-03-26 04:22, Fred Pedrisa: > Here is my fix for probe code : > > static int > nic_uio_probe (device_t dev) > { > int i, len; > char *remaining; > long bus = 0, device = 0, function = 0; > remaining = bdf_str; > len = strlen(remaining); > > for (i = 0; remaining && len >= 5 && i < len;i+=6) { > if ( remaining[i + 1] == ':' && remaining[i + 3] == ':' ) { > bus = strtol(&remaining[i + 0],NULL,0); > device = strtol(&remaining[i + 2],NULL,0); > function = strtol(&remaining[i + 4],NULL,0); > if (dev != NULL) { > if (pci_get_bus(dev) == bus && > pci_get_slot(dev) == device && pci_get_function(dev) == function) { > printf("nic_uio: success blocking > probe of : %ld:%ld:%ld!\n", bus, device, function); > return (ENXIO); > } > } > } > } > > for (i = 0; i < NUM_DEVICES; i++) > if (pci_get_vendor(dev) == devices[i].vend && > pci_get_device(dev) == devices[i].dev) { > > device_set_desc(dev, "Intel(R) DPDK PCI Device"); > return (BUS_PROBE_SPECIFIC); > } > > return (ENXIO); > } > > Now it is working as intended ;) If you think a patch should be applied, please send it with git-send-email as described in http://dpdk.org/dev#send Thank you -- Thomas