From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 14FAA43176 for ; Mon, 16 Oct 2023 03:12:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8CF8240299; Mon, 16 Oct 2023 03:12:16 +0200 (CEST) Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by mails.dpdk.org (Postfix) with ESMTP id BD0A740269 for ; Mon, 16 Oct 2023 03:12:14 +0200 (CEST) Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-7742be66bd3so295155685a.3 for ; Sun, 15 Oct 2023 18:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697418734; x=1698023534; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=e7YxG6q5Zgr6loMKk6nFDV+NbDJ2eXPTXNX6s1hFXA0=; b=FNAIZz6WlK7nM7xazpni/FqIimo9++u6t0IJn6oEjF1HQB3Hdd65XBdkmkux8hgARC tj41MfBxmrVKGbArUhKYtsFkKpz2tmeiuiUc+bI5+B3N3KDd8JzY6xNjjRDBxqf4/9AS J+m6r3sRfotKotEmwVH0zuAY0Gm8fAhMqv20CkA31MvzuHzjiyhPwlso4m27XSlTtKcS YTh5PJMKXT13W7DQvqxsDrOpK09weVW76g/rfkmDN5DFXJcTHIyWXAYtw1BH4DldCZyT rqSjtGMmA6i4EkdojY9LhZojkRPqmgBnNjr/czzB1Egofj0cjwD9B5d9h0tyrhxkWb7o PwRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697418734; x=1698023534; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e7YxG6q5Zgr6loMKk6nFDV+NbDJ2eXPTXNX6s1hFXA0=; b=iFdKlcdIcVnUWxAXDJWoaDdiS3Gyj1bKLCSuB/0WP+HoN4VOqHJw7EdCFGbd+5Yr23 +81/RtTfq+96FXv0jXoqVIF38TQtgdDYzb3EPeD+8BvhA9ULvots1pNUzupJi/txPL9m 7qCbJPIj9MHSOquy72WAJB2m1UXRp9nfoDJnionLk0NiFWvKCZzjubyEixkMbjpL5tYY G9YgcY5Ls3HkKQ0JmdWX7pqTjeB8pj8meJmeOEBi0K8I51o54At+LIhQM/xFUsPn6mV+ Ko/BdOANDHQVLre1ZylVIhDHHzZUpUbZC0Y6gjl1dQXWpz86rrZXjzAyMHDTzgjRB544 ZCBQ== X-Gm-Message-State: AOJu0YziXlaLoUuiyQnq0AMf+sou/W/r0+f8vv6/4AnAJzHepB+s/VCm bMYJAHJ3lUxD7XoOGTQBBb1tlOe1pbvSjw6VeQ4= X-Google-Smtp-Source: AGHT+IEuVidFV4XANF3InDfsTkAyKGdf8thbfymO9ELqpPxy05IqgkOJUvdome7UXe5uS0WET/DTYH9AnpxbUJ5jl5E= X-Received: by 2002:a05:6214:c65:b0:66d:1256:6dbc with SMTP id t5-20020a0562140c6500b0066d12566dbcmr14964630qvj.44.1697418734041; Sun, 15 Oct 2023 18:12:14 -0700 (PDT) MIME-Version: 1.0 References: <20231015161345.45a9e487@hermes.local> In-Reply-To: <20231015161345.45a9e487@hermes.local> From: dave seddon Date: Sun, 15 Oct 2023 18:12:02 -0700 Message-ID: Subject: Re: How to establish a uni-directional Ethernet link in the dpdk environment To: Stephen Hemminger Cc: Alireza Sadeghpour , users@dpdk.org Content-Type: multipart/alternative; boundary="000000000000ad80010607cb18ff" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --000000000000ad80010607cb18ff Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Normally, if you're doing "single fiber optics" it basically means you have a single color/frequency in one direction, and another color/frequency, which is slightly offset. e.g. They say blue for send, and purple for recieve, or something like that. It's hard to screw it up, but I've definitely tried :) On Sun, Oct 15, 2023 at 4:21=E2=80=AFPM Stephen Hemminger < stephen@networkplumber.org> wrote: > On Sun, 15 Oct 2023 10:30:48 +0330 > Alireza Sadeghpour wrote: > > > Hi, > > > > I am trying to establish a uni-directional Ethernet link where a singul= ar > > fiber is used to transmit data to the receiver in the DPDK environment. > The > > Rx of the transmit side and the Tx of the receive side are not physical= ly > > connected, like in a Data diode scenario. The ethernet controller on bo= th > > sides is intel 82580. > > > > my problem is that when I detach the RX line from one side, both sides' > > links go down. > > > > Could anyone please give me some advice to solve this problem and > establish > > a valid unidirectional ethernet link? > > This is not a DPDK problem. Trying to non-standard configuration like thi= s > requires detailed knowledge of the hardware registers, and likely driver > specific > changes to do that. > > It is possible to bring up device in normal full duplex mode and even set= up > the receive queues but ignore them. But that doesn't sound like what you > want. > --=20 Regards, Dave Seddon +1 415 857 5102 --000000000000ad80010607cb18ff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Normally, if you're doing "single fiber optics&qu= ot; it basically means you have a single color/frequency in one direction, = and another color/frequency, which is slightly offset.=C2=A0 e.g. They say = blue for send, and purple for recieve, or something like that.=C2=A0 It'= ;s hard to screw it up, but I've definitely tried :)

On Sun, Oct 15,= 2023 at 4:21=E2=80=AFPM Stephen Hemminger <stephen@networkplumber.org> wrote:
On Sun, 15 Oct 2023 10:30:48 +0= 330
Alireza Sadeghpour <alireza0101sadeghpour@gmail.com> wrote:

> Hi,
>
> I am trying to establish a uni-directional Ethernet link where a singu= lar
> fiber is used to transmit data to the receiver in the DPDK environment= . The
> Rx of the transmit side and the Tx of the receive side are not physica= lly
> connected, like in a Data diode scenario. The ethernet controller on b= oth
> sides is intel 82580.
>
> my problem is that when I detach the RX line from one side, both sides= '
> links go down.
>
> Could anyone please give me some advice to solve this problem and esta= blish
> a valid unidirectional ethernet link?

This is not a DPDK problem. Trying to non-standard configuration like this<= br> requires detailed knowledge of the hardware registers, and likely driver sp= ecific
changes to do that.

It is possible to bring up device in normal full duplex mode and even setup=
the receive queues but ignore them. But that doesn't sound like what yo= u want.


--
Regards,
Dave= Seddon
+1 415 857 5102
--000000000000ad80010607cb18ff--