Changeset 5609d3c in mainline for uspace/drv/nic/virtio-net/virtio-net.c
- Timestamp:
- 2018-06-23T15:19:13Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f1d4d5
- Parents:
- 9afd2a8
- git-author:
- Jakub Jermar <jakub@…> (2018-06-23 14:28:00)
- git-committer:
- Jakub Jermar <jakub@…> (2018-06-23 15:19:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/virtio-net/virtio-net.c
r9afd2a8 r5609d3c 420 420 } 421 421 422 423 static errno_t virtio_net_on_multicast_mode_change(nic_t *nic, 424 nic_multicast_mode_t new_mode, const nic_address_t *address_list, 425 size_t address_count) 426 { 427 switch (new_mode) { 428 case NIC_MULTICAST_BLOCKED: 429 nic_report_hw_filtering(nic, -1, 0, -1); 430 return EOK; 431 case NIC_MULTICAST_LIST: 432 nic_report_hw_filtering(nic, -1, 0, -1); 433 return EOK; 434 case NIC_MULTICAST_PROMISC: 435 nic_report_hw_filtering(nic, -1, 0, -1); 436 return EOK; 437 default: 438 return ENOTSUP; 439 } 440 return EOK; 441 } 442 422 443 static errno_t virtio_net_on_broadcast_mode_change(nic_t *nic, 423 444 nic_broadcast_mode_t new_mode) … … 452 473 453 474 nic_set_send_frame_handler(nic, virtio_net_send); 454 nic_set_filtering_change_handlers(nic, NULL, NULL, 475 nic_set_filtering_change_handlers(nic, NULL, 476 virtio_net_on_multicast_mode_change, 455 477 virtio_net_on_broadcast_mode_change, NULL, NULL); 456 478
Note:
See TracChangeset
for help on using the changeset viewer.