Re: [PATCH 1/3] Kernel interfaces for multiqueue aware socket

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Fenghua Yu
Date: Wednesday, December 15, 2010 - 6:14 pm

On Wed, Dec 15, 2010 at 12:48:38PM -0800, Eric Dumazet wrote:

This only works for AF_PACKET like this patch set shows.


SKF_AD_QUEUE doesn't know number of rx queues. Thus user application can't
specify right SKF_AD_QUEUE.

SKF_AD_QUEUE only works for rx. There is no queue bound interfaces for tx.

I can change the patch set to use SKF_AD_QUEUE by removing the set rx queue
interface and still keep interfaces of
#define SIOGNUMRXQUEUE 0x8939  /* Get number of rx queues. */
#define SIOGNUMTXQUEUE 0x893A  /* Get number of tx queues. */
#define SIOSTXQUEUEMAPPING     0x893C  /* Set tx queue mapping. */
#define SIOGRXQUEUEMAPPING     0x893D  /* Get rx queue mapping. */
#define SIOGTXQUEUEMAPPING     0x893E  /* Get tx queue mapping. */

The new patch set will use SKF_AD_QUEUE for rx. So it won't be limited to mmaped
sockets.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] Kernel interfaces for multiqueue aware socket, Fenghua Yu, (Wed Dec 15, 6:14 pm)
Re: [PATCH 1/3] Kernel interfaces for multiqueue aware socket, Stephen Hemminger, (Wed Dec 15, 6:23 pm)
Re: [PATCH 1/3] Kernel interfaces for multiqueue aware socket, Dimitris Michailidis, (Wed Dec 15, 7:43 pm)