net/mlx5e: Refactor RQ XDP_TX indication
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / en.h
index d26dd4bc89f487c85aaecbf1b3373d9f0599c8b1..a6ca54393bb6ea8509ccc6bf5860ad8960cca6a9 100644 (file)
@@ -479,6 +479,10 @@ typedef struct sk_buff *
 typedef bool (*mlx5e_fp_post_rx_wqes)(struct mlx5e_rq *rq);
 typedef void (*mlx5e_fp_dealloc_wqe)(struct mlx5e_rq*, u16);
 
+enum mlx5e_rq_flag {
+       MLX5E_RQ_FLAG_XDP_XMIT = BIT(0),
+};
+
 struct mlx5e_rq {
        /* data path */
        struct mlx5_wq_ll      wq;
@@ -489,7 +493,6 @@ struct mlx5e_rq {
                        u32 frag_sz;    /* max possible skb frag_sz */
                        union {
                                bool page_reuse;
-                               bool xdp_xmit;
                        };
                } wqe;
                struct {
@@ -528,6 +531,7 @@ struct mlx5e_rq {
        struct bpf_prog       *xdp_prog;
        unsigned int           hw_mtu;
        struct mlx5e_xdpsq     xdpsq;
+       DECLARE_BITMAP(flags, 8);
 
        /* control */
        struct mlx5_wq_ctrl    wq_ctrl;