Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Cross-merge networking fixes after downstream PR. No conflicts. Adjacent changes: drivers/net/ethernet/stmicro/stmmac/common.h38cc3c6dcc("net: stmmac: protect updates of 64-bit statistics counters")fd5a6a7131("net: stmmac: est: Per Tx-queue error count for HLBF")c5c3e1bfc9("net: stmmac: Offload queueMaxSDU from tc-taprio") drivers/net/wireless/microchip/wilc1000/netdev.cc901388028("wifi: fill in MODULE_DESCRIPTION()s for wilc1000")328efda22a("wifi: wilc1000: do not realloc workqueue everytime an interface is added") net/unix/garbage.c11498715f2("af_unix: Remove io_uring code for GC.")1279f9d9de("af_unix: Call kfree_skb() for dead unix_(sk)->oob_skb in GC.") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -808,10 +808,16 @@ static inline struct nft_set_elem_expr *nft_set_ext_expr(const struct nft_set_ex
|
||||
return nft_set_ext(ext, NFT_SET_EXT_EXPRESSIONS);
|
||||
}
|
||||
|
||||
static inline bool nft_set_elem_expired(const struct nft_set_ext *ext)
|
||||
static inline bool __nft_set_elem_expired(const struct nft_set_ext *ext,
|
||||
u64 tstamp)
|
||||
{
|
||||
return nft_set_ext_exists(ext, NFT_SET_EXT_EXPIRATION) &&
|
||||
time_is_before_eq_jiffies64(*nft_set_ext_expiration(ext));
|
||||
time_after_eq64(tstamp, *nft_set_ext_expiration(ext));
|
||||
}
|
||||
|
||||
static inline bool nft_set_elem_expired(const struct nft_set_ext *ext)
|
||||
{
|
||||
return __nft_set_elem_expired(ext, get_jiffies_64());
|
||||
}
|
||||
|
||||
static inline struct nft_set_ext *nft_set_elem_ext(const struct nft_set *set,
|
||||
@@ -1785,6 +1791,7 @@ struct nftables_pernet {
|
||||
struct list_head notify_list;
|
||||
struct mutex commit_mutex;
|
||||
u64 table_handle;
|
||||
u64 tstamp;
|
||||
unsigned int base_seq;
|
||||
unsigned int gc_seq;
|
||||
u8 validate_state;
|
||||
@@ -1797,6 +1804,11 @@ static inline struct nftables_pernet *nft_pernet(const struct net *net)
|
||||
return net_generic(net, nf_tables_net_id);
|
||||
}
|
||||
|
||||
static inline u64 nft_net_tstamp(const struct net *net)
|
||||
{
|
||||
return nft_pernet(net)->tstamp;
|
||||
}
|
||||
|
||||
#define __NFT_REDUCE_READONLY 1UL
|
||||
#define NFT_REDUCE_READONLY (void *)__NFT_REDUCE_READONLY
|
||||
|
||||
|
||||
Reference in New Issue
Block a user