[RH7,1/3] vznetstat: Kill unused venet_acct_classify_sub_outgoing()

Submitted by Kirill Tkhai on Oct. 6, 2020, 1:18 p.m.

Details

Message ID 160199030110.150671.9700351687791346721.stgit@localhost.localdomain
State New
Series "Series without cover letter"
Headers show

Commit Message

Kirill Tkhai Oct. 6, 2020, 1:18 p.m.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 include/linux/vznetstat.h       |    3 ---
 kernel/ve/vznetstat/vznetstat.c |   10 ----------
 2 files changed, 13 deletions(-)

Patch hide | download patch | download mbox

diff --git a/include/linux/vznetstat.h b/include/linux/vznetstat.h
index ca5da0b18ed6..1b8bbce7fd24 100644
--- a/include/linux/vznetstat.h
+++ b/include/linux/vznetstat.h
@@ -59,7 +59,6 @@  void   venet_acct_put_stat(struct venet_stat *);
 
 void venet_acct_classify_add_incoming(struct venet_stat *, struct sk_buff *skb);
 void venet_acct_classify_add_outgoing(struct venet_stat *, struct sk_buff *skb);
-void venet_acct_classify_sub_outgoing(struct venet_stat *, struct sk_buff *skb);
 
 void venet_acct_classify_add_incoming_plain(struct venet_stat *stat,
 		struct ve_addr_struct *src_addr, int data_size);
@@ -74,8 +73,6 @@  static inline void venet_acct_classify_add_incoming(struct venet_stat *stat,
 						struct sk_buff *skb) {}
 static inline void venet_acct_classify_add_outgoing(struct venet_stat *stat,
 						struct sk_buff *skb) {}
-static inline void venet_acct_classify_sub_outgoing(struct venet_stat *stat,
-						struct sk_buff *skb) {}
 
 static inline void venet_acct_classify_add_incoming_plain(struct venet_stat *stat,
 		struct ve_addr_struct *src_addr, int data_size) {}
diff --git a/kernel/ve/vznetstat/vznetstat.c b/kernel/ve/vznetstat/vznetstat.c
index f366325bd91b..aa8d007adbbe 100644
--- a/kernel/ve/vznetstat/vznetstat.c
+++ b/kernel/ve/vznetstat/vznetstat.c
@@ -753,15 +753,6 @@  void venet_acct_classify_add_outgoing(struct venet_stat *stat, struct sk_buff *s
 	venet_acct_mark(stat, skb, class);
 }
 
-void venet_acct_classify_sub_outgoing(struct venet_stat *stat, struct sk_buff *skb)
-{
-	int class;
-
-	class = acct_one_skb(stat, skb, ACCT_OUT, -venet_acct_skb_size(skb));
-	/* Do not forget to mark skb for traffic shaper */
-	venet_acct_mark(stat, skb, class);
-}
-
 void venet_acct_classify_add_incoming_plain(struct venet_stat *stat,
 		struct ve_addr_struct *src_addr, int data_size)
 {
@@ -1190,7 +1181,6 @@  EXPORT_SYMBOL(venet_acct_find_stat);
 EXPORT_SYMBOL(venet_acct_put_stat);
 EXPORT_SYMBOL(venet_acct_classify);
 EXPORT_SYMBOL(venet_acct_classify_add_outgoing);
-EXPORT_SYMBOL(venet_acct_classify_sub_outgoing);
 EXPORT_SYMBOL(venet_acct_classify_add_incoming);
 EXPORT_SYMBOL(venet_acct_classify_add_incoming_plain);
 EXPORT_SYMBOL(venet_acct_classify_add_outgoing_plain);