diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-08-19 09:47:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-24 14:41:44 -0400 |
commit | e8753043f9fbabffbf087c7f4b514c50ef89541e (patch) | |
tree | 2c4b382a21500c228005a43e48134d39fdcccbe8 /include/net | |
parent | 4e0d8cc1006b889909a87f824943bad9a56358e8 (diff) |
NFC: Reserve tx head and tail room
We can have the NFC core layer allocating the tx head and tail
room for the drivers and avoid 1 or more SKBs copy on write on
the Tx path.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/nfc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/nfc.h b/include/net/nfc.h index cc0130312f70..87b51fe15b70 100644 --- a/include/net/nfc.h +++ b/include/net/nfc.h | |||
@@ -82,6 +82,9 @@ struct nfc_dev { | |||
82 | struct nfc_genl_data genl_data; | 82 | struct nfc_genl_data genl_data; |
83 | u32 supported_protocols; | 83 | u32 supported_protocols; |
84 | 84 | ||
85 | int tx_headroom; | ||
86 | int tx_tailroom; | ||
87 | |||
85 | struct nfc_ops *ops; | 88 | struct nfc_ops *ops; |
86 | }; | 89 | }; |
87 | #define to_nfc_dev(_dev) container_of(_dev, struct nfc_dev, dev) | 90 | #define to_nfc_dev(_dev) container_of(_dev, struct nfc_dev, dev) |
@@ -89,7 +92,9 @@ struct nfc_dev { | |||
89 | extern struct class nfc_class; | 92 | extern struct class nfc_class; |
90 | 93 | ||
91 | struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops, | 94 | struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops, |
92 | u32 supported_protocols); | 95 | u32 supported_protocols, |
96 | int tx_headroom, | ||
97 | int tx_tailroom); | ||
93 | 98 | ||
94 | /** | 99 | /** |
95 | * nfc_free_device - free nfc device | 100 | * nfc_free_device - free nfc device |