소스 검색

[igbvf] Allow changing of MAC address

The VF might not have assigned a MAC address upon startup, and will
end up with a random MAC address during probe().  With this patch the
MAC address can be changed later on.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Hannes Reinecke 12 년 전
부모
커밋
bb5a4a111b
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      src/drivers/net/igbvf/igbvf_main.c

+ 4
- 0
src/drivers/net/igbvf/igbvf_main.c 파일 보기

617
 
617
 
618
 	DBG ("igbvf_open\n");
618
 	DBG ("igbvf_open\n");
619
 
619
 
620
+	/* Update MAC address */
621
+	memcpy ( adapter->hw.mac.addr, netdev->ll_addr, ETH_ALEN );
622
+	igbvf_reset( adapter );
623
+
620
 	/* allocate transmit descriptors */
624
 	/* allocate transmit descriptors */
621
 	err = igbvf_setup_tx_resources ( adapter );
625
 	err = igbvf_setup_tx_resources ( adapter );
622
 	if (err) {
626
 	if (err) {

Loading…
취소
저장