Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3e3b285 authored by Anish Bhatt's avatar Anish Bhatt Committed by David S. Miller
Browse files

cxgb4: Export symbols required by cxgb4i for ipv6 support and required defines

parent 3ded29ac
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -3445,7 +3445,7 @@ static int tid_init(struct tid_info *t)
	return 0;
	return 0;
}
}


static int cxgb4_clip_get(const struct net_device *dev,
int cxgb4_clip_get(const struct net_device *dev,
		   const struct in6_addr *lip)
		   const struct in6_addr *lip)
{
{
	struct adapter *adap;
	struct adapter *adap;
@@ -3460,8 +3460,9 @@ static int cxgb4_clip_get(const struct net_device *dev,
	c.ip_lo = *(__be64 *)(lip->s6_addr + 8);
	c.ip_lo = *(__be64 *)(lip->s6_addr + 8);
	return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, false);
	return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, false);
}
}
EXPORT_SYMBOL(cxgb4_clip_get);


static int cxgb4_clip_release(const struct net_device *dev,
int cxgb4_clip_release(const struct net_device *dev,
		       const struct in6_addr *lip)
		       const struct in6_addr *lip)
{
{
	struct adapter *adap;
	struct adapter *adap;
@@ -3476,6 +3477,7 @@ static int cxgb4_clip_release(const struct net_device *dev,
	c.ip_lo = *(__be64 *)(lip->s6_addr + 8);
	c.ip_lo = *(__be64 *)(lip->s6_addr + 8);
	return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, false);
	return t4_wr_mbox_meat(adap, adap->mbox, &c, sizeof(c), &c, false);
}
}
EXPORT_SYMBOL(cxgb4_clip_release);


/**
/**
 *	cxgb4_create_server - create an IP server
 *	cxgb4_create_server - create an IP server
+4 −0
Original line number Original line Diff line number Diff line
@@ -172,6 +172,10 @@ int cxgb4_create_server_filter(const struct net_device *dev, unsigned int stid,
			       unsigned char port, unsigned char mask);
			       unsigned char port, unsigned char mask);
int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid,
int cxgb4_remove_server_filter(const struct net_device *dev, unsigned int stid,
			       unsigned int queue, bool ipv6);
			       unsigned int queue, bool ipv6);
int cxgb4_clip_get(const struct net_device *dev, const struct in6_addr *lip);
int cxgb4_clip_release(const struct net_device *dev,
		       const struct in6_addr *lip);

static inline void set_wr_txq(struct sk_buff *skb, int prio, int queue)
static inline void set_wr_txq(struct sk_buff *skb, int prio, int queue)
{
{
	skb_set_queue_mapping(skb, (queue << 1) | prio);
	skb_set_queue_mapping(skb, (queue << 1) | prio);
+2 −0
Original line number Original line Diff line number Diff line
@@ -270,6 +270,8 @@ struct cpl_pass_accept_rpl {
#define RX_COALESCE_VALID(x) ((x) << 11)
#define RX_COALESCE_VALID(x) ((x) << 11)
#define RX_COALESCE(x)       ((x) << 12)
#define RX_COALESCE(x)       ((x) << 12)
#define PACE(x)	      ((x) << 16)
#define PACE(x)	      ((x) << 16)
#define RX_FC_VALID	     ((1U) << 19)
#define RX_FC_DISABLE	     ((1U) << 20)
#define TX_QUEUE(x)          ((x) << 23)
#define TX_QUEUE(x)          ((x) << 23)
#define RX_CHANNEL(x)        ((x) << 26)
#define RX_CHANNEL(x)        ((x) << 26)
#define CCTRL_ECN(x)         ((x) << 27)
#define CCTRL_ECN(x)         ((x) << 27)