aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/dvb-core/dvb_net.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_net.c b/drivers/media/dvb/dvb-core/dvb_net.c
index 2117377c141d..a33eb5988c42 100644
--- a/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/drivers/media/dvb/dvb-core/dvb_net.c
@@ -1220,10 +1220,17 @@ static struct net_device_stats * dvb_net_get_stats(struct net_device *dev)
1220 return &((struct dvb_net_priv*) dev->priv)->stats; 1220 return &((struct dvb_net_priv*) dev->priv)->stats;
1221} 1221}
1222 1222
1223static const struct header_ops dvb_header_ops = {
1224 .create = eth_header,
1225 .parse = eth_header_parse,
1226 .rebuild = eth_rebuild_header,
1227};
1228
1223static void dvb_net_setup(struct net_device *dev) 1229static void dvb_net_setup(struct net_device *dev)
1224{ 1230{
1225 ether_setup(dev); 1231 ether_setup(dev);
1226 1232
1233 dev->header_ops = &dvb_header_ops;
1227 dev->open = dvb_net_open; 1234 dev->open = dvb_net_open;
1228 dev->stop = dvb_net_stop; 1235 dev->stop = dvb_net_stop;
1229 dev->hard_start_xmit = dvb_net_tx; 1236 dev->hard_start_xmit = dvb_net_tx;
@@ -1232,7 +1239,7 @@ static void dvb_net_setup(struct net_device *dev)
1232 dev->set_mac_address = dvb_net_set_mac; 1239 dev->set_mac_address = dvb_net_set_mac;
1233 dev->mtu = 4096; 1240 dev->mtu = 4096;
1234 dev->mc_count = 0; 1241 dev->mc_count = 0;
1235 dev->hard_header_cache = NULL; 1242
1236 dev->flags |= IFF_NOARP; 1243 dev->flags |= IFF_NOARP;
1237} 1244}
1238 1245