diff options
Diffstat (limited to 'include/net/tc_act')
| -rw-r--r-- | include/net/tc_act/tc_csum.h | 4 | ||||
| -rw-r--r-- | include/net/tc_act/tc_defact.h | 4 | ||||
| -rw-r--r-- | include/net/tc_act/tc_gact.h | 4 | ||||
| -rw-r--r-- | include/net/tc_act/tc_ipt.h | 4 | ||||
| -rw-r--r-- | include/net/tc_act/tc_mirred.h | 4 | ||||
| -rw-r--r-- | include/net/tc_act/tc_nat.h | 4 | ||||
| -rw-r--r-- | include/net/tc_act/tc_pedit.h | 4 | ||||
| -rw-r--r-- | include/net/tc_act/tc_skbedit.h | 7 | 
8 files changed, 17 insertions, 18 deletions
diff --git a/include/net/tc_act/tc_csum.h b/include/net/tc_act/tc_csum.h index 9e8710be7a0..fa8f5fac65e 100644 --- a/include/net/tc_act/tc_csum.h +++ b/include/net/tc_act/tc_csum.h @@ -9,7 +9,7 @@ struct tcf_csum {  	u32 update_flags;  }; -#define to_tcf_csum(pc) \ -	container_of(pc,struct tcf_csum,common) +#define to_tcf_csum(a) \ +	container_of(a->priv,struct tcf_csum,common)  #endif /* __NET_TC_CSUM_H */ diff --git a/include/net/tc_act/tc_defact.h b/include/net/tc_act/tc_defact.h index 65f024b8095..9763dcbb9bc 100644 --- a/include/net/tc_act/tc_defact.h +++ b/include/net/tc_act/tc_defact.h @@ -8,7 +8,7 @@ struct tcf_defact {  	u32     		tcfd_datalen;  	void    		*tcfd_defdata;  }; -#define to_defact(pc) \ -	container_of(pc, struct tcf_defact, common) +#define to_defact(a) \ +	container_of(a->priv, struct tcf_defact, common)  #endif /* __NET_TC_DEF_H */ diff --git a/include/net/tc_act/tc_gact.h b/include/net/tc_act/tc_gact.h index 9e3f6767b80..9fc9b578908 100644 --- a/include/net/tc_act/tc_gact.h +++ b/include/net/tc_act/tc_gact.h @@ -11,7 +11,7 @@ struct tcf_gact {          int			tcfg_paction;  #endif  }; -#define to_gact(pc) \ -	container_of(pc, struct tcf_gact, common) +#define to_gact(a) \ +	container_of(a->priv, struct tcf_gact, common)  #endif /* __NET_TC_GACT_H */ diff --git a/include/net/tc_act/tc_ipt.h b/include/net/tc_act/tc_ipt.h index f7d25dfcc4b..c0f4193f432 100644 --- a/include/net/tc_act/tc_ipt.h +++ b/include/net/tc_act/tc_ipt.h @@ -11,7 +11,7 @@ struct tcf_ipt {  	char			*tcfi_tname;  	struct xt_entry_target	*tcfi_t;  }; -#define to_ipt(pc) \ -	container_of(pc, struct tcf_ipt, common) +#define to_ipt(a) \ +	container_of(a->priv, struct tcf_ipt, common)  #endif /* __NET_TC_IPT_H */ diff --git a/include/net/tc_act/tc_mirred.h b/include/net/tc_act/tc_mirred.h index cfe2943690f..4dd77a1c106 100644 --- a/include/net/tc_act/tc_mirred.h +++ b/include/net/tc_act/tc_mirred.h @@ -11,7 +11,7 @@ struct tcf_mirred {  	struct net_device	*tcfm_dev;  	struct list_head	tcfm_list;  }; -#define to_mirred(pc) \ -	container_of(pc, struct tcf_mirred, common) +#define to_mirred(a) \ +	container_of(a->priv, struct tcf_mirred, common)  #endif /* __NET_TC_MIR_H */ diff --git a/include/net/tc_act/tc_nat.h b/include/net/tc_act/tc_nat.h index 4a691f34d70..63d8e9ca9d9 100644 --- a/include/net/tc_act/tc_nat.h +++ b/include/net/tc_act/tc_nat.h @@ -13,9 +13,9 @@ struct tcf_nat {  	u32 flags;  }; -static inline struct tcf_nat *to_tcf_nat(struct tcf_common *pc) +static inline struct tcf_nat *to_tcf_nat(struct tc_action *a)  { -	return container_of(pc, struct tcf_nat, common); +	return container_of(a->priv, struct tcf_nat, common);  }  #endif /* __NET_TC_NAT_H */ diff --git a/include/net/tc_act/tc_pedit.h b/include/net/tc_act/tc_pedit.h index e6f6e15956f..5b80998879c 100644 --- a/include/net/tc_act/tc_pedit.h +++ b/include/net/tc_act/tc_pedit.h @@ -9,7 +9,7 @@ struct tcf_pedit {  	unsigned char		tcfp_flags;  	struct tc_pedit_key	*tcfp_keys;  }; -#define to_pedit(pc) \ -	container_of(pc, struct tcf_pedit, common) +#define to_pedit(a) \ +	container_of(a->priv, struct tcf_pedit, common)  #endif /* __NET_TC_PED_H */ diff --git a/include/net/tc_act/tc_skbedit.h b/include/net/tc_act/tc_skbedit.h index e103fe02f37..0df9a0db4a8 100644 --- a/include/net/tc_act/tc_skbedit.h +++ b/include/net/tc_act/tc_skbedit.h @@ -11,8 +11,7 @@   * more details.   *   * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place - Suite 330, Boston, MA 02111-1307 USA. + * this program; if not, see <http://www.gnu.org/licenses/>.   *   * Author: Alexander Duyck <alexander.h.duyck@intel.com>   */ @@ -30,7 +29,7 @@ struct tcf_skbedit {  	u16			queue_mapping;  	/* XXX: 16-bit pad here? */  }; -#define to_skbedit(pc) \ -	container_of(pc, struct tcf_skbedit, common) +#define to_skbedit(a) \ +	container_of(a->priv, struct tcf_skbedit, common)  #endif /* __NET_TC_SKBEDIT_H */  | 
