Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
[linux-2.6-microblaze.git] / drivers / net / ethernet / sfc / net_driver.h
index 8164f0e..b084e62 100644 (file)
 #define EFX_RX_BUF_ALIGNMENT   4
 #endif
 
+/* Non-standard XDP_PACKET_HEADROOM and tailroom to satisfy XDP_REDIRECT and
+ * still fit two standard MTU size packets into a single 4K page.
+ */
+#define EFX_XDP_HEADROOM       128
+#define EFX_XDP_TAILROOM       SKB_DATA_ALIGN(sizeof(struct skb_shared_info))
+
 /* Forward declare Precision Time Protocol (PTP) support structure. */
 struct efx_ptp_data;
 struct hwtstamp_config;
@@ -333,7 +339,7 @@ struct efx_rx_buffer {
 struct efx_rx_page_state {
        dma_addr_t dma_addr;
 
-       unsigned int __pad[0] ____cacheline_aligned;
+       unsigned int __pad[] ____cacheline_aligned;
 };
 
 /**