Revert "net: fix dev_fill_forward_path with pppoe + bridge"
This reverts commit f96b2e0672.
It breaks the ABI and will be brought in through a different branch to
preserve it.
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I729afbaefb667bd9e73260efb83c68e434e5bce6
This commit is contained in:
@@ -988,7 +988,6 @@ static int pppoe_fill_forward_path(struct net_device_path_ctx *ctx,
|
||||
path->encap.proto = htons(ETH_P_PPP_SES);
|
||||
path->encap.id = be16_to_cpu(po->num);
|
||||
memcpy(path->encap.h_dest, po->pppoe_pa.remote, ETH_ALEN);
|
||||
memcpy(ctx->daddr, po->pppoe_pa.remote, ETH_ALEN);
|
||||
path->dev = ctx->dev;
|
||||
ctx->dev = dev;
|
||||
|
||||
|
||||
@@ -887,7 +887,7 @@ struct net_device_path_stack {
|
||||
|
||||
struct net_device_path_ctx {
|
||||
const struct net_device *dev;
|
||||
u8 daddr[ETH_ALEN];
|
||||
const u8 *daddr;
|
||||
|
||||
int num_vlans;
|
||||
struct {
|
||||
|
||||
@@ -748,11 +748,11 @@ int dev_fill_forward_path(const struct net_device *dev, const u8 *daddr,
|
||||
const struct net_device *last_dev;
|
||||
struct net_device_path_ctx ctx = {
|
||||
.dev = dev,
|
||||
.daddr = daddr,
|
||||
};
|
||||
struct net_device_path *path;
|
||||
int ret = 0;
|
||||
|
||||
memcpy(ctx.daddr, daddr, sizeof(ctx.daddr));
|
||||
stack->num_paths = 0;
|
||||
while (ctx.dev && ctx.dev->netdev_ops->ndo_fill_forward_path) {
|
||||
last_dev = ctx.dev;
|
||||
|
||||
Reference in New Issue
Block a user