liquidio: Host queue mapping changes
This patch is to allocate the input queues based on Numa node in tx path and queue mapping changes based on the mapping info provided by firmware. Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com> Signed-off-by: Satanand Burla <satananda.burla@caviumnetworks.com> Signed-off-by: Felix Manlunas <felix.manlunas@caviumnetworks.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@caviumnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ddc173a688
commit
26236fa9a1
@@ -516,6 +516,46 @@ union oct_link_status {
|
||||
} s;
|
||||
};
|
||||
|
||||
/** The txpciq info passed to host from the firmware */
|
||||
|
||||
union oct_txpciq {
|
||||
u64 u64;
|
||||
|
||||
struct {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
u64 q_no:8;
|
||||
u64 port:8;
|
||||
u64 pkind:6;
|
||||
u64 use_qpg:1;
|
||||
u64 qpg:11;
|
||||
u64 reserved:30;
|
||||
#else
|
||||
u64 reserved:30;
|
||||
u64 qpg:11;
|
||||
u64 use_qpg:1;
|
||||
u64 pkind:6;
|
||||
u64 port:8;
|
||||
u64 q_no:8;
|
||||
#endif
|
||||
} s;
|
||||
};
|
||||
|
||||
/** The rxpciq info passed to host from the firmware */
|
||||
|
||||
union oct_rxpciq {
|
||||
u64 u64;
|
||||
|
||||
struct {
|
||||
#ifdef __BIG_ENDIAN_BITFIELD
|
||||
u64 q_no:8;
|
||||
u64 reserved:56;
|
||||
#else
|
||||
u64 reserved:56;
|
||||
u64 q_no:8;
|
||||
#endif
|
||||
} s;
|
||||
};
|
||||
|
||||
/** Information for a OCTEON ethernet interface shared between core & host. */
|
||||
struct oct_link_info {
|
||||
union oct_link_status link;
|
||||
@@ -535,8 +575,8 @@ struct oct_link_info {
|
||||
u16 gmxport;
|
||||
#endif
|
||||
|
||||
u8 txpciq[MAX_IOQS_PER_NICIF];
|
||||
u8 rxpciq[MAX_IOQS_PER_NICIF];
|
||||
union oct_txpciq txpciq[MAX_IOQS_PER_NICIF];
|
||||
union oct_rxpciq rxpciq[MAX_IOQS_PER_NICIF];
|
||||
};
|
||||
|
||||
#define OCT_LINK_INFO_SIZE (sizeof(struct oct_link_info))
|
||||
|
||||
Reference in New Issue
Block a user