* [PATCH 1/1] RDMA/rxe: Remove VLAN code leftovers from RXE
@ 2020-11-02 14:13 Zhu Yanjun
2020-11-12 15:50 ` Jason Gunthorpe
0 siblings, 1 reply; 2+ messages in thread
From: Zhu Yanjun @ 2020-11-02 14:13 UTC (permalink / raw)
To: zyjzyj2000, yanjunz, dledford, jgg, linux-rdma
Since the commit fd49ddaf7e26 ("RDMA/rxe: prevent rxe creation on
top of vlan interface") does not permit rxe on top of vlan device,
all the stuff related with vlan should be removed.
Fixes: fd49ddaf7e26 ("RDMA/rxe: prevent rxe creation on top of vlan interface")
Signed-off-by: Zhu Yanjun <yanjunz@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
---
drivers/infiniband/sw/rxe/rxe_net.c | 9 ---------
drivers/infiniband/sw/rxe/rxe_resp.c | 5 -----
2 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/drivers/infiniband/sw/rxe/rxe_net.c b/drivers/infiniband/sw/rxe/rxe_net.c
index 5731d9b..2e490e5 100644
--- a/drivers/infiniband/sw/rxe/rxe_net.c
+++ b/drivers/infiniband/sw/rxe/rxe_net.c
@@ -8,7 +8,6 @@
#include <linux/if_arp.h>
#include <linux/netdevice.h>
#include <linux/if.h>
-#include <linux/if_vlan.h>
#include <net/udp_tunnel.h>
#include <net/sch_generic.h>
#include <linux/netfilter.h>
@@ -26,9 +25,6 @@ struct device *rxe_dma_device(struct rxe_dev *rxe)
ndev = rxe->ndev;
- if (is_vlan_dev(ndev))
- ndev = vlan_dev_real_dev(ndev);
-
return ndev->dev.parent;
}
@@ -58,14 +54,9 @@ static int rxe_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
{
struct udphdr *udph;
struct net_device *ndev = skb->dev;
- struct net_device *rdev = ndev;
struct rxe_dev *rxe = rxe_get_dev_from_net(ndev);
struct rxe_pkt_info *pkt = SKB_TO_PKT(skb);
- if (!rxe && is_vlan_dev(rdev)) {
- rdev = vlan_dev_real_dev(ndev);
- rxe = rxe_get_dev_from_net(rdev);
- }
if (!rxe)
goto drop;
diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c
index c7e3b6a..5a09808 100644
--- a/drivers/infiniband/sw/rxe/rxe_resp.c
+++ b/drivers/infiniband/sw/rxe/rxe_resp.c
@@ -872,11 +872,6 @@ static enum resp_states do_complete(struct rxe_qp *qp,
else
wc->network_hdr_type = RDMA_NETWORK_IPV6;
- if (is_vlan_dev(skb->dev)) {
- wc->wc_flags |= IB_WC_WITH_VLAN;
- wc->vlan_id = vlan_dev_vlan_id(skb->dev);
- }
-
if (pkt->mask & RXE_IMMDT_MASK) {
wc->wc_flags |= IB_WC_WITH_IMM;
wc->ex.imm_data = immdt_imm(pkt);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] RDMA/rxe: Remove VLAN code leftovers from RXE
2020-11-02 14:13 [PATCH 1/1] RDMA/rxe: Remove VLAN code leftovers from RXE Zhu Yanjun
@ 2020-11-12 15:50 ` Jason Gunthorpe
0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2020-11-12 15:50 UTC (permalink / raw)
To: Zhu Yanjun; +Cc: zyjzyj2000, dledford, linux-rdma
On Mon, Nov 02, 2020 at 10:13:42PM +0800, Zhu Yanjun wrote:
> Since the commit fd49ddaf7e26 ("RDMA/rxe: prevent rxe creation on
> top of vlan interface") does not permit rxe on top of vlan device,
> all the stuff related with vlan should be removed.
>
> Fixes: fd49ddaf7e26 ("RDMA/rxe: prevent rxe creation on top of vlan interface")
> Signed-off-by: Zhu Yanjun <yanjunz@nvidia.com>
> Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
> ---
> drivers/infiniband/sw/rxe/rxe_net.c | 9 ---------
> drivers/infiniband/sw/rxe/rxe_resp.c | 5 -----
> 2 files changed, 0 insertions(+), 14 deletions(-)
Applied to for-next, thanks
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-12 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 14:13 [PATCH 1/1] RDMA/rxe: Remove VLAN code leftovers from RXE Zhu Yanjun
2020-11-12 15:50 ` Jason Gunthorpe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.