Re: [PATCH v2 08/14] habanalabs/gaudi: add a new IOCTL for NIC control operations

2020-09-12 Thread Randy Dunlap
On 9/12/20 8:19 AM, Oded Gabbay wrote: > On Sat, Sep 12, 2020 at 6:07 PM Randy Dunlap wrote: >> >> Hi, >> >> On 9/12/20 7:41 AM, Oded Gabbay wrote: >>> +#define HL_IOCTL_NIC _IOWR('H', 0x07, struct hl_nic_args) >> >> >> ioctl numbers ('H') should be documented in >> Documentation/userspace-api/ioc

Re: [PATCH v2 08/14] habanalabs/gaudi: add a new IOCTL for NIC control operations

2020-09-12 Thread Oded Gabbay
On Sat, Sep 12, 2020 at 6:07 PM Randy Dunlap wrote: > > Hi, > > On 9/12/20 7:41 AM, Oded Gabbay wrote: > > +#define HL_IOCTL_NIC _IOWR('H', 0x07, struct hl_nic_args) > > > ioctl numbers ('H') should be documented in > Documentation/userspace-api/ioctl/ioctl-number.rst > > Sorry if I missed seeing

Re: [PATCH v2 08/14] habanalabs/gaudi: add a new IOCTL for NIC control operations

2020-09-12 Thread Randy Dunlap
Hi, On 9/12/20 7:41 AM, Oded Gabbay wrote: > +#define HL_IOCTL_NIC _IOWR('H', 0x07, struct hl_nic_args) ioctl numbers ('H') should be documented in Documentation/userspace-api/ioctl/ioctl-number.rst Sorry if I missed seeing that. (I scanned quickly.) thanks. -- ~Randy

[PATCH v2 08/14] habanalabs/gaudi: add a new IOCTL for NIC control operations

2020-09-12 Thread Oded Gabbay
From: Omer Shpigelman Add Queue Pair (QP) opcodes to the NIC ioctl. A QP represents a connection between two Gaudi ports. Each port currently supports 1024 QPs where QP 0 is reserved for the driver for Ethernet. User-space process needs to create a QP in order to communicate with other Gaudis.