wil6210: generalize tx desc mapping
Introduce enum to describe mapping type; allow 'none' in addition to 'single' and 'page'; this is preparation for GSO Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
c236658f14
commit
2232abd59a
@@ -209,13 +209,19 @@ struct pending_wmi_event {
|
||||
} __packed event;
|
||||
};
|
||||
|
||||
enum { /* for wil_ctx.mapped_as */
|
||||
wil_mapped_as_none = 0,
|
||||
wil_mapped_as_single = 1,
|
||||
wil_mapped_as_page = 2,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wil_ctx - software context for Vring descriptor
|
||||
*/
|
||||
struct wil_ctx {
|
||||
struct sk_buff *skb;
|
||||
u8 nr_frags;
|
||||
u8 mapped_as_page:1;
|
||||
u8 mapped_as;
|
||||
};
|
||||
|
||||
union vring_desc;
|
||||
|
Reference in New Issue
Block a user